Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dm-docs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hammonds
dm-docs
Commits
b6405e0b
Commit
b6405e0b
authored
8 years ago
by
sveseli
Browse files
Options
Downloads
Patches
Plain Diff
monitoring fixes from trunk
parent
04d808b7
No related branches found
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/python/dm/common/processing/fileProcessingThread.py
+3
-0
3 additions, 0 deletions
src/python/dm/common/processing/fileProcessingThread.py
src/python/dm/daq_web_service/service/impl/fileSystemObserver.py
+4
-2
4 additions, 2 deletions
...hon/dm/daq_web_service/service/impl/fileSystemObserver.py
with
7 additions
and
2 deletions
src/python/dm/common/processing/fileProcessingThread.py
+
3
−
0
View file @
b6405e0b
...
...
@@ -36,6 +36,7 @@ class FileProcessingThread(threading.Thread):
self
.
logger
.
debug
(
'
File %s processing is cancelled
'
%
(
filePath
))
endProcessingTime
=
time
.
time
()
statusMonitor
.
fileProcessingCancelled
(
filePath
,
endProcessingTime
)
statusMonitor
.
updateStatus
()
return
self
.
logger
.
debug
(
'
Starting to process file %s
'
%
filePath
)
startProcessingTime
=
fileInfo
.
get
(
'
startProcessingTime
'
,
time
.
time
())
...
...
@@ -67,6 +68,7 @@ class FileProcessingThread(threading.Thread):
endProcessingTime
=
time
.
time
()
if
statusMonitor
:
statusMonitor
.
fileProcessed
(
filePath
,
endProcessingTime
)
statusMonitor
.
updateStatus
()
except
Exception
,
ex
:
self
.
logger
.
exception
(
ex
)
processingError
=
'
%s processing error: %s
'
%
(
processorName
,
str
(
ex
))
...
...
@@ -84,6 +86,7 @@ class FileProcessingThread(threading.Thread):
endProcessingTime
=
time
.
time
()
if
statusMonitor
:
statusMonitor
.
fileProcessingError
(
filePath
,
processingError
,
endProcessingTime
)
statusMonitor
.
updateStatus
()
self
.
logger
.
debug
(
'
No more %s retries left for file %s, remaining plugins will not process it
'
%
(
processorName
,
filePath
))
return
else
:
...
...
This diff is collapsed.
Click to expand it.
src/python/dm/daq_web_service/service/impl/fileSystemObserver.py
+
4
−
2
View file @
b6405e0b
...
...
@@ -108,9 +108,11 @@ class FileSystemObserver(threading.Thread,Singleton):
observedFile
=
ObservedFile
(
filePath
=
filePath
,
dataDirectory
=
dataDirectory
,
experiment
=
experiment
)
observedFile
[
'
daqInfo
'
]
=
daqInfo
.
toDictWithOriginalKeys
()
observedFile
[
'
statusMonitor
'
]
=
daqInfo
self
.
observedFileMap
[
filePath
]
=
observedFile
self
.
logger
.
debug
(
'
New observed file: %s
'
,
filePath
)
else
:
self
.
logger
.
debug
(
'
Observed file updated: %s
'
,
filePath
)
observedFile
.
setLastUpdateTimeToNow
()
self
.
observedFileMap
[
filePath
]
=
observedFile
self
.
logger
.
debug
(
'
Observed file updated: %s
'
,
filePath
)
@ThreadingUtility.synchronize
def
checkObservedFilesForProcessing
(
self
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment