Delay between attempts #676

Closed
askuratovsky opened this Issue Jul 18, 2014 · 1 comment

Comments

Projects
None yet
3 participants

Hello!
I use delayed_job to send some callbacks to other web services. And i want to make next attempt of job after 20 minutes since unsuccessful attempt.
Can i make it using standard delayed_job syntax?
Looks like 'sleep_delay' setting is not what i need.

Collaborator

betamatt commented Jul 18, 2014

Your job class can define a reschedule_at method that returns the time the
next attempt should run at:

def reschedule_at(time_now, attempts)
time_now + 20.minutes
end

On Fri, Jul 18, 2014 at 8:34 AM, Andrey Skuratovsky <
notifications@github.com> wrote:

Hello!
I use delayed_job to send some callbacks to other web services. And i want
to make next attempt of job after 20 minutes since unsuccessful attempt.
Can i make it using standard delayed_job syntax?
Looks like 'sleep_delay' setting is not what i need.


Reply to this email directly or view it on GitHub
#676.

@albus522 albus522 closed this Sep 24, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment