Log the in progress work as a warning when force terminating.#1376
Log the in progress work as a warning when force terminating.#1376mperham merged 2 commits intosidekiq:masterfrom
Conversation
Helps trace through logs to understand what jobs got run more than once if a worker was forced to shutdown.
|
Should it only log if necessary? |
|
Do you mean moving the logging to before the |
|
I mean |
|
I think that any clause we put there will by and large always eval to true. E.g., logger.warn { ... } unless @busy.empty?should still log since we're in the I think it's possible that @busy finishes while this code is being called, so I can update to guard against that but I think it'll almost always eval to true. Is there some other guard condition I'm not thinking of? |
|
I see what you are saying though. If busy is non-empty, in_progress should be non-empty too. Log |
|
updated |
Log the in progress work as a warning when force terminating.
Helps trace through logs to understand what jobs got run more than once if a worker was forced to shutdown.