Repository navigation
Commit 3deff3d
committed
Release blocked executions whose job class no longer resolves
BlockedExecution#release called Semaphore.wait(job) unconditionally, and
the semaphore proxy dereferences job.concurrency_limit and
job.concurrency_duration, which are delegated to job_class — nil when the
job's class was renamed or removed between deploys. The release
transaction raised DelegationError and rolled back, so the dispatcher's
concurrency maintenance picked up the same blocked execution and crashed
again on every tick, forever, and the row was never cleaned up.
Job#concurrency_limited? already treats jobs without a resolvable class
as not limited, and Job#acquire_concurrency_lock consults it before
touching the semaphore; the blocked execution release path was the only
one that didn't. Apply the same guard there: promote the execution to
ready without taking a semaphore slot, so the job fails on execution with
a proper NameError and becomes visible as a failed execution instead of
wedging the dispatcher.
Fixes #7841 parent 6816e52 commit 3deff3d
2 files changed
Lines changed: 45 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
65 | 70 | | |
66 | 71 | | |
67 | 72 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
0 commit comments