Undefined Method error

44 views
Skip to first unread message

John Barbosa

unread,
Aug 28, 2022, 11:27:54 AM8/28/22
to delayed_job
Hi Guys!

I've been trying to run this command in my development console.

`RemainderMailer.delay(run_at: 1.minute.from_now).order_checkpoint(Remainder.last)`

But I'm getting this error.

`/home/john/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/activemodel-7.0.3.1/lib/active_model/attribute_methods.rb:458:in `method_missing': **undefined method `cron_changed?'** for #<Delayed::Backend::ActiveRecord::Job id: nil, priority: 0, attempts: 0, handler: "--- !ruby/object:Delayed::PerformableMailer\nobject...", last_error: nil, run_at: "2022-08-28 03:15:24.387102000 -0500", locked_at: nil, failed_at: nil, locked_by: nil, queue: "mailers", created_at: nil, updated_at: nil> (NoMethodError)`

```
# Working config

ruby 3.1.2
rails 7.0.3.1
delayed_job 4.1.10
delayed_job_active_record 4.1.7
```

Thanks, 
JohnB
Reply all
Reply to author
Forward
0 new messages