#242 BUG: Workflow retry leaves completed_at set causing corrupted state

closed high Created 2025-12-03 15:24 · Updated 2025-12-03 15:24

Description

Edit
When a workflow fails and Absurd retries it, _update_workflow_run_if_exists_first_start() sets status='running' but does NOT clear completed_at. This causes corrupted state where status=running AND completed_at is set. Root cause: orchestrator.py line 1033 Fix: Added completed_at = NULL and error = NULL to the UPDATE statement. Symptoms: - Workflow shows 'running' but has completed_at timestamp - Cancel API fails because state is inconsistent - Workflows loop indefinitely (fail, retry, fail, retry...) Fixed in this commit.

Comments

Loading comments...

Context

Loading context...

Audit History

View All
Loading audit history...