Skip to content

Conversation

@njakobsen
Copy link

This PR adds support for handling the exclude_specified_queues flag on the worker, added in collectiveidea/delayed_job#1148. This flag indicates whether the list of queues is an inclusion or exclusion filter, allowing delayed job to create worker pools that process any jobs except those in the list of queues.

A worker can now opt to exclude the given queues by setting the `exclude_specified_queues` option.
If we have jobs without a queue they should be returned by `not_for_queues` unless one of the queues we don't want is specifically `nil`.
When shutting down and releasing jobs, we should still respect the `ActiveRecord.configuration.reserve_sql_strategy` and clear locks using explicit job ids if the strategy is `:default_sql`. This can help avoid transaction isolation conflicts when shutting down several job runners.
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.

1 participant