We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
looks like provider_job_id is nil inside active_job instance during perform (and related callbacks)
nil
but fix is quiet simple just put following into initializer
class Delayed::ActiveJobPlugin < Delayed::Plugin callbacks do |lifecycle| lifecycle.before(:invoke_job) do |job| job.payload_object.job_data['provider_job_id'] = job.id if job.payload_object.respond_to?(:job_data) end end end Delayed::Worker.plugins << Delayed::ActiveJobPlugin
I want to keep it here for future generation maybe add to README?
The text was updated successfully, but these errors were encountered:
This is good. Perhaps the best place to fix it is in Rails itself per:
https://github.com/rails/rails/pull/25961/files#diff-e1ee600ca5fd100da20810ef5acbab89546064fc323c7b1e6bdb6ed5e681a9d3R40
Sorry, something went wrong.
No branches or pull requests
looks like provider_job_id is
nil
inside active_job instance during perform (and related callbacks)but fix is quiet simple
just put following into initializer
I want to keep it here for future generation
maybe add to README?
The text was updated successfully, but these errors were encountered: