At the moment, I have a sidekiq job like this:
There are two questions here.
If you want to execute a job immediately, in the current context you can use:
If you want to decrease the delay between asynchronous work being scheduled and when it's executed in the sidekiq worker, you can decrease the
Sidekiq.configure_server do |config| config.poll_interval = 2 end
poll_interval is the delay within worker backends of how frequently workers check for jobs on the queue. The average time between a job being scheduled and executed with a free worker will be
poll_interval / 2.