Recompute path in kanban dispatch error handler to avoid unbound local
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
parent
9e6ec12acd
commit
30d7366a31
|
|
@ -1081,6 +1081,7 @@ def _run_kanban_agent(task_id: str):
|
|||
except Exception as e:
|
||||
print(f"[kanban] dispatch for task {task_id} crashed: {e}")
|
||||
try:
|
||||
path = kanban_task_path(task_id)
|
||||
task = json.loads(path.read_text())
|
||||
task["status"] = "blocked"
|
||||
task["block_reason"] = f"Dispatch crashed: {e}"[:300]
|
||||
|
|
|
|||
Loading…
Reference in New Issue