Setting dead_max_jobs in sidekiq.yml configuration
#6428
-
|
Ruby: 3.3.5 Hey, pretty sure this is working as intended and wanted to validate my understanding. We previously used the We've been using this configuration for years, but it was recently brought to my attention that the morgue limit wasn't being set to 50000. Instead, it was falling back to the default value of 10000 and resulted in use losing a number of jobs from the DeadSet. My guess is that it has been broken since our Sidekiq 7 upgrade a few months ago and it hadn't been noticed until recently. I reviewed the Advanced Options docs and saw this line
I also found this discussion which suggests I want to use Couple questions:
Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Yes, adding |
Beta Was this translation helpful? Give feedback.
Yes, adding
Sidekiq.default_configuration[:dead_max_jobs] = 50_000to your initializer is the right approach.