Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sidekiq options: retry not work #39

Open
SmileDMiao opened this issue Nov 28, 2019 · 0 comments
Open

Sidekiq options: retry not work #39

SmileDMiao opened this issue Nov 28, 2019 · 0 comments

Comments

@SmileDMiao
Copy link

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

@SmileDMiao SmileDMiao changed the title Sidekiq options not work Sidekiq options: retry not work Dec 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant