sidekiq-postpone

Services & Skills

Share on

Typical use-case is with database transactions:

Sidekiq::Postpone.wrap do
  ActiveRecord::Base.transaction do
    # ...
    post = Post.create(params)
    ImageProcess.perform_async(post.image)
  end
end
# In fact, ImageProcess job will be pushed to the queue only after the `wrap { ... }` block finishes.

In the same orbit

Explore more open source projects

Schedule call

Irina Nazarova CEO at Evil Martians

Evil Martians transform growth-stage startups into unicorns, build developer tools, and create open source products. Hire us to design and build your product