Skip to content

Commit

Permalink
Update tasks.py
Browse files Browse the repository at this point in the history
  • Loading branch information
crisingulani authored Sep 6, 2024
1 parent 14a3b86 commit 4c85c31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/core/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def check_processes_finish():
logger.info(f"-> Process orchestration ID: {proc_orches_id}")
logger.info(f"-> Status: {proc_orchest_status}")

if proc_orchest_status == "Running" and not proc.status:
if proc_orchest_status == "Running" and proc.status == "Pending":
started_at = proc_orchest.get("started_at", str(proc.created_at))
proc.started_at = dateparse.parse_datetime(started_at)
proc.status = proc_orchest_status
Expand Down

0 comments on commit 4c85c31

Please sign in to comment.