Skip to content

Refactor the dispatcher job to use Active Job's rescue_from API #1

Open
@chancancode

Description

@chancancode

We can refactor this rescue block to use Active Job's rescue_from API.

The main motivation for this (making the code more idiomatic is a nice bonus) is to avoid the automatic retry behavior in Sidekiq. It is not usually useful (and very confusing) to retry the commands. According to this it seems like handling errors manually will stop Sidekiq from retrying automatically, as long as we don't call retry_job.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions