Skip to content

Commit

Permalink
Fix compatibility with Sidekiq v6.5.7 (#366)
Browse files Browse the repository at this point in the history
We don't use the process count parameter so we just set a default value
so that this works with previous versions too

Closes #365
  • Loading branch information
engwan authored Sep 20, 2022
1 parent 67db8a1 commit b6c856b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sidekiq/cron/poller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def enqueue_job(job, time = Time.now.utc)
handle_exception(ex) if respond_to?(:handle_exception)
end

def poll_interval_average
def poll_interval_average(process_count = 1)
@config[:cron_poll_interval] || POLL_INTERVAL
end
end
Expand Down

0 comments on commit b6c856b

Please sign in to comment.