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
12718088
Commit
12718088
authored
9 years ago
by
sveseli
Browse files
Options
Downloads
Patches
Plain Diff
added handling and reporting for processing errors
parent
84f80007
No related branches found
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/python/dm/daq_web_service/service/impl/experimentSessionControllerImpl.py
+9
-8
9 additions, 8 deletions
...b_service/service/impl/experimentSessionControllerImpl.py
with
9 additions
and
8 deletions
src/python/dm/daq_web_service/service/impl/experimentSessionControllerImpl.py
+
9
−
8
View file @
12718088
...
...
@@ -42,20 +42,21 @@ class ExperimentSessionControllerImpl(DmObjectManager):
FileSystemObserver
.
getInstance
().
startObservingPath
(
dataDirectory
,
experiment
)
return
daqInfo
def
stopDaq
(
self
,
experimentName
,
dataDirectory
):
def
stopDaq
(
self
,
experimentName
,
dataDirectory
,
includeFileDetails
=
False
):
experiment
=
self
.
dsExperimentApi
.
getExperimentByName
(
experimentName
)
daqInfo
=
DaqTracker
.
getInstance
().
stopDaq
(
experiment
,
dataDirectory
)
FileSystemObserver
.
getInstance
().
stopObservingPath
(
dataDirectory
,
experiment
)
return
daqInfo
.
scrub
()
daqInfo
.
updateStatus
()
return
daqInfo
.
scrub
(
includeFileDetails
)
def
getDaqInfo
(
self
,
id
):
def
getDaqInfo
(
self
,
id
,
includeFileDetails
=
False
):
daqInfo
=
DaqTracker
.
getInstance
().
getDaqInfo
(
id
)
if
not
daqInfo
:
raise
ObjectNotFound
(
'
Daq id %s not found.
'
%
id
)
daqInfo
.
updateStatus
()
return
daqInfo
.
scrub
()
return
daqInfo
.
scrub
(
includeFileDetails
)
def
upload
(
self
,
experimentName
,
dataDirectory
,
daqInfo
):
def
upload
(
self
,
experimentName
,
dataDirectory
,
daqInfo
,
includeFileDetails
=
False
):
experiment
=
self
.
dsExperimentApi
.
getExperimentByName
(
experimentName
)
experiment
[
'
daqInfo
'
]
=
daqInfo
storageDirectory
=
experiment
.
get
(
'
storageDirectory
'
)
...
...
@@ -107,13 +108,13 @@ class ExperimentSessionControllerImpl(DmObjectManager):
uploadInfo
[
'
fileDict
'
]
=
fileDict
#self.logger.debug('Upload info %s' % uploadInfo)
UploadTracker
.
getInstance
().
put
(
uploadId
,
uploadInfo
)
return
uploadInfo
.
scrub
()
return
uploadInfo
.
scrub
(
includeFileDetails
)
def
getUploadInfo
(
self
,
id
):
def
getUploadInfo
(
self
,
id
,
includeFileDetails
=
False
):
uploadInfo
=
UploadTracker
.
getInstance
().
get
(
id
)
if
not
uploadInfo
:
raise
ObjectNotFound
(
'
Upload id %s not found.
'
%
id
)
uploadInfo
.
updateStatus
()
return
uploadInfo
.
scrub
()
return
uploadInfo
.
scrub
(
includeFileDetails
)
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