Sidekiq v6.4.0 Release Notes
-
- ๐ SECURITY: Validate input to avoid possible DoS in Web UI.
- Add strict argument checking [#5071]
Sidekiq will now log a warning if JSON-unsafe arguments are passed to
perform_async
. AddSidekiq.strict_args!(false)
to your initializer to disable this warning. This warning will switch to an exception in Sidekiq 7.0. - ๐ Note that Delayed Extensions will be removed in Sidekiq 7.0 [#5076]
- โ Add
perform_{inline,sync}
in Sidekiq::Job to run a job synchronously [#5061, hasan-ally]ruby SomeJob.perform_async(args...) SomeJob.perform_sync(args...) SomeJob.perform_inline(args...)
You can also dynamically redirect a job to run synchronously:ruby SomeJob.set("sync": true).perform_async(args...) # will run via perform_inline
- ๐ท Replace Sidekiq::Worker
app/workers
generator with Sidekiq::Jobapp/sidekiq
generator [#5055]bin/rails generate sidekiq:job ProcessOrderJob
- ๐ Fix job retries losing CurrentAttributes [#5090]
- ๐ Tweak shutdown to give long-running threads time to cleanup [#5095]