git://git.onelab.eu
/
nepi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Changing total_seconds in timefuncs, fixing _execute in ec, adding unittest
[nepi.git]
/
src
/
nepi
/
execution
/
ec.py
diff --git
a/src/nepi/execution/ec.py
b/src/nepi/execution/ec.py
index
7147823
..
21caac0
100644
(file)
--- a/
src/nepi/execution/ec.py
+++ b/
src/nepi/execution/ec.py
@@
-956,11
+956,10
@@
class ExperimentController(object):
:type task: Task
"""
- # Invoke callback
- task.status = TaskStatus.DONE
-
try:
+ # Invoke callback
task.result = task.callback()
+ task.status = TaskStatus.DONE
except:
import traceback
err = traceback.format_exc()