How to get job id in activity in activejob (adapter = resque) in Rails

I can get the JOB id from the before_enqueue method eg.

before_enqueue do |job|
  puts "Before Enqueu JOB ID: #{job.job_id}"
end

      

BUT I want to get it also in the run method Please help!

+3


source to share





All Articles