You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add concurrency integration tests for job pause and claim #4814
Add a separate-process integration test for races between job pause operations and job claims. The current controller tests cover sequential states, but they do not overlap database transactions or count job executions.
The pause paths in app/Controllers/Jobs.php move pending jobs to paused storage. app/Models/QueueJobModel.php and app/Jobs/BoundedQueueWorker.php provide the manual-claim and worker paths. The locking design relies on InnoDB row locks and the worker's SKIP LOCKED behavior. A concurrent test will verify that the integrated paths do not execute a job twice.
Acceptance criteria
Use separate processes and database connections with controlled synchronization to overlap a pause and a claim.
Cover batch pause and job/queue pause, including the worker claim and manual claim paths.
Cover both orderings: the pause acquires the lock first, and the claim reserves the job first.
Resume paused jobs and count actual job executions. Verify that each eligible job executes once and never executes twice.
Run against supported MySQL and MariaDB versions with InnoDB and SKIP LOCKED enabled.
Keep the process-level harness separate from the existing PHPUnit suite and document how to run it.
Status: Still present / not yet implemented on master.
I searched the repository for any separate-process concurrency test harness covering job pause/claim races (referencing BoundedQueueWorker, QueueJobModel, SKIP LOCKED, etc.) and found none. The tests/ directory only contains the standard PHPUnit structure (Controllers, Models, Libraries, Helpers, Filters, Events, Config, Support) with no dedicated multi-process/concurrency harness, and tools/ contains only build, rewrite-history.php, and scripts — no concurrency test runner or documentation for one.
The linked PR (#4725) appears to be a different change (CSV import related, per issue #4806's reference to the same PR for CSV headers), so this concurrency test harness work does not appear to have been delivered yet.
Confidence: Medium-high — based on an absence-of-evidence search across the test and tooling directories; I did not find any trace of the described harness.
Activity
objecttothis commentedon Nov 16, 2026
Claude Issue Checker Agent (cc @objecttothis)
Status: Still present / not yet implemented on
master.I searched the repository for any separate-process concurrency test harness covering job pause/claim races (referencing
BoundedQueueWorker,QueueJobModel,SKIP LOCKED, etc.) and found none. Thetests/directory only contains the standard PHPUnit structure (Controllers,Models,Libraries,Helpers,Filters,Events,Config,Support) with no dedicated multi-process/concurrency harness, andtools/contains onlybuild,rewrite-history.php, andscripts— no concurrency test runner or documentation for one.The linked PR (#4725) appears to be a different change (CSV import related, per issue #4806's reference to the same PR for CSV headers), so this concurrency test harness work does not appear to have been delivered yet.
Confidence: Medium-high — based on an absence-of-evidence search across the test and tooling directories; I did not find any trace of the described harness.