Skip to content

Sidekiq options: retry not work #39

@SmileDMiao

Description

@SmileDMiao

I set the sidekiq options:

sidekiq_options retry: false
sidekiq_options batch_flush_size: 2, batch_flush_interval: 60

I set the retry as false, but if the job raise exception, the retry times change to 14(default value i set)
I found the reason is that when push job to sidekiq, the worker class params is string:

'class' => @worker_class,

but in sidekiq, if the worker class params is not a class, it will found the default options:https://github.com/mperham/sidekiq/blob/83c9524fb45883692de5732ff71bc1d70a3358dd/lib/sidekiq/client.rb#L244

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions