Skip to content

retry_on adding wait time to first run #613

@harry-herskowitz

Description

@harry-herskowitz

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}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions