Repository navigation
Comparing changes
Open a pull request
base repository: rails/solid_queue
base: v1.5.0
head repository: rails/solid_queue
compare: v1.5.1
- 10 commits
- 30 files changed
- 6 contributors
Commits on Jul 24, 2026
-
Wait deterministically before signaling QUIT and KILL in lifecycle tests
The tests only waited for jobs to be claimed before signaling, so on a slow runner the signal's exit! could land after the instant job was claimed, or even after it had written its result, but before its finished_at was committed, leaving it unfinished and failing the test. Wait until the instant job has actually finished and the paused job has actually started before signaling, so the signal always arrives while only the paused job is in-flight, which is the scenario these tests exist to check. The async QUIT test's pause also becomes 60 seconds like the forked variant's: with only 1 second, a slow QUIT could land after the paused job finished, breaking the assertion that it remains claimed. Nothing waits for the pause, so test runtime is unaffected. Co-Authored-By: Claude Opus 4.8 <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 0a7c1cf - Browse repository at this point
Copy the full SHA 0a7c1cfView commit details -
Kill job threads leaked by workers stopped in-process in tests
A worker stopped while a job is running gives up on its pool after SolidQueue.shutdown_timeout and releases the claim, but it can't stop the thread running the job. A forked worker exits right after, killing the thread; a worker running in-process in a test leaks it instead, sleeping until the job's pause is over, long after its test finished. Inside a transactional test this corrupts later tests: the leaked job's inserts roll back with the test, and on SQLite the AUTOINCREMENT sequence bump rolls back too, so later tests' rows get the same ids and the leaked thread writes over them when it wakes up. This was behind several flaky failures on SQLite: a job result overwritten with "completed" mid-assertion, and a claimed execution stolen by a leaked finalize call on a recycled claim id, leaving a job neither finished nor ready. It can't happen in production: ids are only re-issued when the insert rolls back, and a real worker's threads die with its process. Kill the leaked threads in the tests that create them, like a forked worker's exit would, and fix the explanation of SQLite id reuse in the concurrency controls test setup: with AUTOINCREMENT, committed deletes never free ids; it's the transactional rollback that recycles them. Co-Authored-By: Claude Opus 4.8 <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for f731502 - Browse repository at this point
Copy the full SHA f731502View commit details -
Add an update generator to copy new migrations
Future schema changes will ship as regular migrations, optional at first and required in the next major version. `rails solid_queue:update` (or the solid_queue:update generator directly) copies any new migration files from the gem to the application, honoring the database the app uses for Solid Queue via the --database option. Together with this, add a deprecator for Solid Queue, registered with the application so it follows the app's deprecation behavior settings, and a warning helper that features guarded behind pending migrations can use to instruct users to update. Extracted from earlier work on linking claimed executions to processes by name, which ended up not being needed. Co-Authored-By: Claude Opus 4.8 <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 29e818d - Browse repository at this point
Copy the full SHA 29e818dView commit details -
Wait for the continuable job to start before interrupting it
The test slept a fixed 0.2 seconds after enqueuing and then signaled TERM, assuming the job would be mid-step by then. On a slow runner the signal could arrive before any worker had even claimed the job, and the wait for released jobs would return immediately, unable to tell "released" from "never claimed", so the test asserted against a job result that hadn't been touched yet. Have the job write a "started" marker at the top of its first step and wait for it before signaling, so the interruption always lands while the job is paused inside step one, which is the scenario the test exists to check: interrupt between steps, resume, complete. Co-Authored-By: Claude Opus 4.8 <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 74b6b07 - Browse repository at this point
Copy the full SHA 74b6b07View commit details
Commits on Jul 27, 2026
-
Add --only-recurring to run just the recurring scheduler
Makes isolating the scheduler on its own process explicit, matching the existing --skip-recurring option and the workaround of an empty workers/dispatchers config. Fixes #484 Co-authored-by: Cursor <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 517a974 - Browse repository at this point
Copy the full SHA 517a974View commit details -
Lease connections in DistinctValues instead of calling deprecated `co…
…nnection` Bare `connection` resolves to the deprecated ActiveRecord::Base.connection, which raises under permanent_connection_checkout = :disallowed on Rails 8.1. Follows the connection_pool.with_connection pattern from #652.
Configuration menu - View commit details
-
Copy full SHA for 40d6bd5 - Browse repository at this point
Copy the full SHA 40d6bd5View commit details
Commits on Jul 29, 2026
-
Configuration menu - View commit details
-
Copy full SHA for 6a2a201 - Browse repository at this point
Copy the full SHA 6a2a201View commit details -
Terminate the stalled supervisor gracefully in tests
The tests killed the whole process group to clean up, but the supervisor under test is actively replacing its stalled forks, and a group KILL races that forking: a fork spawned concurrently with the kill can escape it, wake up from its stalled boot long after the test has finished, register itself and start polling, holding the test database's write lock and cascading lock timeouts through unrelated tests, as seen on CI with SQLite. Terminating the supervisor gracefully instead lets it clean up its own forks: it stops replacing them first, and a fork stuck in boot is covered by the QUIT escalation, as its signal handlers are installed before the boot callbacks where it stalls. This also lets go of the replacement fork's liveness assertion: the replacement stalls too, so whether it's alive depends on where its own boot timeout is. Co-Authored-By: Claude Opus 4.8 <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 7e62a62 - Browse repository at this point
Copy the full SHA 7e62a62View commit details -
Track process startups with boot guards the processes themselves manage
Move the startup-tracking machinery out of ForkSupervisor into boot guards with a common interface, created by each process when it starts, according to how it runs: a forked process pipes its boot completion to the supervisor through a BootGuards::ForkGuard, created before forking so it survives it, while processes running as threads of their supervisor, or inline, use a BootGuards::NullGuard, which completes on boot without any monitoring. Booting itself completes the guard, so starting a process remains just boot and run. ForkSupervisor checks its forks' boot guards while checking for terminated processes to replace, terminating any fork whose boot has timed out so that it's reaped and replaced as usual, and closing each guard together with the rest of the fork's cleanup, asking the process instances themselves, like the async supervisor does when it checks whether they're alive. The configurable timeout becomes fork_boot_timeout, as it only applies to forked processes: supervised processes running as threads aren't monitored while booting, and the supervisor itself has no parent within Solid Queue that could enforce a timeout on it. The instrumentation event follows suit. Also reuse Timer's monotonic clock instead of redefining it. Co-Authored-By: Claude Opus 4.8 <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for f8899df - Browse repository at this point
Copy the full SHA f8899dfView commit details -
Configuration menu - View commit details
-
Copy full SHA for e5d8c17 - Browse repository at this point
Copy the full SHA e5d8c17View commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff v1.5.0...v1.5.1