Skip to content

Commit

Permalink
hotfix: no auto write metadata for subworkflows (if embed_subworkflow)
Browse files Browse the repository at this point in the history
  • Loading branch information
leepc12 committed Oct 13, 2020
1 parent c19133a commit 5799d0d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions caper/cromwell_workflow_monitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,13 @@ def _update_metadata(self, workflow_id):
"""
if not self._is_server or not self._auto_update_metadata:
return
if workflow_id in self._subworkflows and self._embed_subworkflow:
logger.debug(
'Skipped writing metadata JSON file of subworkflow {wf_id}'.format(
wf_id=workflow_id
)
)
return
for trial in range(CromwellWorkflowMonitor.MAX_RETRY_UPDATE_METADATA + 1):
try:
time.sleep(CromwellWorkflowMonitor.INTERVAL_RETRY_UPDATE_METADATA)
Expand Down

0 comments on commit 5799d0d

Please sign in to comment.