# sidekiq-postpone

> Bulk-pushes tasks to Redis when you need it to.

- URL: https://evilmartians.com/opensource/sidekiq-postpone
- GitHub: https://github.com/marshall-lee/sidekiq-postpone
- Authors: Vladimir Kochnev

---

sidekiq-postpone bulk-pushes tasks to Redis when you need it to.

Typical use-case is with database transactions:

```ruby
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.
```
