Skip to content

A delay using the sidekiq scheduler? #1713

Answered by pjurewicz
ericgross asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @ericgross,
assuming that you are using RES 2.12+, the answer is YES.

Sidekiq scheduler now accepts Sidekiq::Job::Setter instance as a valid handler. So that you can set up your subscription like this:
event_store.subscribe(NotifyJob.set(wait: 5.seconds), to: [StatusChanged])

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ericgross
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants