Skip to content
New issue

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

NoMethodError delayedjob 4.1.5 #1088

Closed
jaigkmit opened this issue May 14, 2019 · 0 comments
Closed

NoMethodError delayedjob 4.1.5 #1088

jaigkmit opened this issue May 14, 2019 · 0 comments

Comments

@jaigkmit
Copy link

Ref: #323
undefined method `update_job' for #Document:0x0000000006986358

I am trying to implement delayed_job for a data updation on a rails 5.0.6 app on staging with ruby 2.4.4 .

Following the documentation I am making the delay call from my controller as follows:

after_create :update_job

def update_job
end
handle_asynchronously :do_cal

This causes the task to be added to the job table but when I run rake jobs:work it logs the following error:

Class#update_job failed with NoMethodError: undefined method `update_job' for Class:Class - 6 failed attempts

Here is my delayed job entry
#<Delayed::Backend::ActiveRecord::Job id: 162, priority: 0, attempts: 1, handler: “--- !ruby/object:Delayed::PerformableMethod\nobject...“, last_error: “undefined method update_job' for #<Document

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant