Skip to content

Commit

Permalink
Un-deprecate Adapter's execution_mode argument (#567)
Browse files Browse the repository at this point in the history
  • Loading branch information
bensheldon authored Apr 18, 2022
1 parent f99794f commit 8cd0425
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/good_job/adapter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ class Adapter
# @param poll_interval [Integer, nil] sets the number of seconds between polls for jobs when +execution_mode+ is set to +:async+. You can also set this with the environment variable +GOOD_JOB_POLL_INTERVAL+. Defaults to +1+.
# @param start_async_on_initialize [Boolean] whether to start the async scheduler when the adapter is initialized.
def initialize(execution_mode: nil, queues: nil, max_threads: nil, poll_interval: nil, start_async_on_initialize: nil)
if execution_mode || queues || max_threads || poll_interval || start_async_on_initialize
if queues || max_threads || poll_interval || start_async_on_initialize
ActiveSupport::Deprecation.warn(
"The GoodJob::Adapter's initialization parameters have been deprecated and will be removed in GoodJob v3. These options should be configured through GoodJob global configuration instead."
"GoodJob::Adapter's execution-related arguments (queues, max_threads, poll_interval, start_async_on_initialize) have been deprecated and will be removed in GoodJob v3. These options should be configured through GoodJob global configuration instead."
)
end

Expand Down

0 comments on commit 8cd0425

Please sign in to comment.