Skip to content

Commit

Permalink
Discard
Browse files Browse the repository at this point in the history
  • Loading branch information
gerardsegarra committed Apr 24, 2024
1 parent d91d8a8 commit 90b0f12
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def process_workflow_job():
node_ids.add(job.node_id)

elif job.action == "in_progress":
node_ids.remove(job.node_id)
node_ids.discard(job.node_id)
job_requested = jobs.get(job.id)
time_to_start = None
if not job_requested:
Expand Down Expand Up @@ -99,7 +99,7 @@ def process_workflow_job():
jobs[job.id] = job

elif job.action == "completed":
node_ids.remove(job.node_id)
node_ids.discard(job.node_id)
job_requested = jobs.get(job.id)
if not job_requested:
app.logger.warning(f"Job {job.id} is {job.action} but not stored!")
Expand Down

0 comments on commit 90b0f12

Please sign in to comment.