-
Hi, I'd like to be able to get the current job id from anywhere in the code for logging and tracing purpose. Currently we do that with the request id when the change directly comes from a controller, but would like to also have the sidekiq job id when the change comes from a job Is there any officially accessible info on the current thread for this ? Thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
While running inside a Sidekiq job, you can run this to get the current JID: Sidekiq::Context.current["jid"] |
Beta Was this translation helpful? Give feedback.
While running inside a Sidekiq job, you can run this to get the current JID: