solid_queue icon indicating copy to clipboard operation
solid_queue copied to clipboard

retry_on adding wait time to first run

Open harry-herskowitz opened this issue 5 months ago • 1 comments

Using retry_on like so:

class SyncJob < ApplicationJob
    include Common
    queue_as :scheduler
    retry_on StandardError, wait: 5.seconds, attempts: 3

is scheduling the first run to 5 seconds from now:

{"scheduled_at"=>Fri, 25 Jul 2025 06:55:18.969603000 PDT -07:00, "created_at"=>Fri, 25 Jul 2025 06:55:13.969974000 PDT -07:00}

harry-herskowitz avatar Jul 25 '25 13:07 harry-herskowitz

Hey @harry-herskowitz, how do you know it's the first run?

rosa avatar Jul 25 '25 14:07 rosa