Is it possible to move sidekiq work directly to the dead queue from the SidekiqWorker instance level (i.e. at runtime)
class MyWorker include Sidekiq::Worker sidekiq_options retry: 9 def perform(name) if name == 'StackOverflow' # ----> skip_retry_queue_and_go_to_dead_queue else # do_stuff! end end end
No. You can just go returnthere and the task will not be repeated (since it will be considered successful).
return
Not dynamically as part of the job.
Statically, if you install sidekiq_options retry: 0, the task goes directly to the Dead set if it causes an error.
sidekiq_options retry: 0
https://github.com/mperham/sidekiq/wiki/Error-Handling#configuration
Source: https://habr.com/ru/post/1617723/More articles:https://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1617718/how-to-add-two-vm-hosts-to-foreman-puppet-master&usg=ALkJrhiJUnCYovsf3eoCaBV_SXny0AyE2wFull name of the interface - phpThere was a conflict between the two versions of the assembly when BindingRedirect set - c #StringBuilder insert () vs append () performance? - javaVisual Cover Code Coverage includes unwanted libraries - c ++Can Spark code run on a cluster without spark-submit? - yarnPHP -> NumberFormatter not working - phpПодача искрового приложения в качестве задания на пряжу из контекста Eclipse и Spark - yarnExtended unpacking in python3 - pythonhttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1617728/how-using-both-functions-to-listen-data-on-firebase-android&usg=ALkJrhg1xw10hj9dY6WX-tJ1Ank61dqbWwAll Articles