Skip to content

Commit

Permalink
fixed option keep_succeeded_workflow which was not followed
Browse files Browse the repository at this point in the history
  • Loading branch information
denisri committed Nov 20, 2024
1 parent 9ab72e5 commit 5c934d2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion capsul/engine/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,9 @@ def dispose(engine, execution_id, conditional=False):
'''
keep = False
if conditional:
if not engine.study_config.somaworkflow_keep_succeeded_workflows:
if engine.study_config.somaworkflow_keep_succeeded_workflows:
keep = True
else:
keep = False
if engine.study_config.somaworkflow_keep_failed_workflows:
# must see it it failed or not
Expand Down

0 comments on commit 5c934d2

Please sign in to comment.