solid_queue
solid_queue copied to clipboard
retry_on adding wait time to first run
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}
Hey @harry-herskowitz, how do you know it's the first run?