feat: alert on same-tag wait deadlocks and fail the waiting parent (#12613)

* feat: alert on same-tag wait deadlocks and fail the waiting parent

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix: fail a deadlocked wait only when every holder is waiting on it

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix: count a parent as waiting only when its sdk wait says so

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* perf: monitor only checks open tag deadlock alerts for recovery

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(rust-client): pass wait_for_child from wait_job

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* perf: reach a parent's stuck child through its waiting mark

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Ruben Fiszel
2026-11-24 12:08:40 +01:00
committed by GitHub
co-authored by Claude Opus 5.5
parent b917f6f458
commit 304f912183
15 changed files with 666 additions and 3 deletions
+3
View File
@@ -535,6 +535,9 @@ class Windmill:
result_res = self.get(
f"/w/{self.workspace}/jobs_u/completed/get_result_maybe/{job_id}",
True,
# this job is blocked on `job_id`: a child that can never start (every worker of
# its tag held by such a waiting job) fails the wait instead of hanging
params={"wait_for_child": "true"},
retry_budget=(timeout - (time.time() - start_time)) if timeout else None,
).json()