Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions beeflow/wf_manager/resources/wf_update.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,9 @@ def handle_checkpoint_restart(self, state_update, task, wfi):
def handle_state_change(self, state_update, task, wfi):
"""Handle a normal state change for a task."""
wf_id = wfi.workflow_id
if state_update.job_state == wfi.get_task_state(task.id):
log.info(f"Received duplicate state update for task {task.name}; ignoring.")
return
wf_state = wf_utils.get_wf_status(wf_id)
if state_update.job_state == 'COMPLETED':
for output in task.outputs:
Expand Down
Loading