Skip to content

Accept optional job argument in stopping?#747

Merged
rosa merged 1 commit into
rails:mainfrom
thoughtless:stopping-update
Jul 9, 2026
Merged

Accept optional job argument in stopping?#747
rosa merged 1 commit into
rails:mainfrom
thoughtless:stopping-update

Conversation

@thoughtless

Copy link
Copy Markdown
Contributor

Rails commit 6d1c401dc7 ("Pass job instance to stopping?") changed ActiveJob::Continuable#checkpoint! to call queue_adapter.stopping?(self), passing the running job so adapters can decide whether to checkpoint based on it.

This caused errors such as:

ArgumentError: wrong number of arguments (given 1, expected 0)

The new argument is ignored. Solid Queue still relies solely on the worker shutdown flag. But the signature is now compatible with both the new and old Rails calling conventions.

Rails commit 6d1c401dc7 ("Pass job instance to stopping?") changed
ActiveJob::Continuable#checkpoint! to call queue_adapter.stopping?(self),
passing the running job so adapters can decide whether to checkpoint
based on it.

This caused errors such as:

    ArgumentError: wrong number of arguments (given 1, expected 0)

The new argument is ignored. Solid Queue still relies solely on the
worker shutdown flag. But the signature is now compatible with both
the new and old Rails calling conventions.
@thoughtless

Copy link
Copy Markdown
Contributor Author

As far as I can tell, the failing CI tests are flaky and not caused by this change.

@rosa

rosa commented Jul 9, 2026

Copy link
Copy Markdown
Member

Sorry for the delay here! I'm finally finding time to catch up with the pile of open PRs.

@rosa rosa merged commit a8c8937 into rails:main Jul 9, 2026
61 of 64 checks passed
rosa added a commit to basecamp/fizzy that referenced this pull request Jul 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants