Skip to content

Commit 18b93cd

Browse files
author
jmzhang
committed
fixed error handler
1 parent 8644b3b commit 18b93cd

11 files changed

Lines changed: 3 additions & 2 deletions

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
*$py.class
44
*.so
55
.venv/
6-
dist/
6+
dist/

snakemake_logger_plugin_flowo/event_handlers.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ def handle(
8484
workflow = session.query(Workflow).filter(Workflow.id == workflow_id).first()
8585
if workflow and workflow.status == Status.RUNNING:
8686
workflow.status = Status.ERROR
87+
workflow.end_time = datetime.now()
8788

8889

8990
class WorkflowStartedHandler(EventHandler):
Binary file not shown.
-590 Bytes
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)