I want to update old sidekiq jobs with new time interval. How I can do this ? Is it possible through perform_in
option. In addition I want to know clear difference between perform_in
and perform_async
.
Workarea applications use Sidekiq as a job queuing backend to perform units of work asynchronously in the background. These jobs, which include search indexing, cache busting, and cleanup of expired data, are defined as workers .
At the same time, Sidekiq uses multithreading so it is much more memory-efficient than Rescue.
Sidekiq uses Redis as an in-memory data structure store and is written in Ruby.
Sidekiq is one of the more widely used background job frameworks that you can implement in a Rails application. It is backed by Redis, an in-memory key-value store known for its flexibility and performance. Sidekiq uses Redis as a job management store to process thousands of jobs per second.
You have to pass perform_in
a time. perform_async
gets pushed to the queue right away. Other than that they're the same. You'd call perform_in(10.minutes)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With