You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
but it not working. Error: /user/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/good_job-2.0.5/lib/good_job/cron_manager.rb:87:in create_task': undefined method next_time' for nil:NilClass (NoMethodError)
The text was updated successfully, but these errors were encountered:
That will delete expired job records after 1k jobs are executed and/or every hour.
To your question directly, GoodJob's cron feature only runs ActiveJob jobs and the cron: key only accepts a schedule (it looks like you tried to use entire line from a crontab that has a shell script; that won't work). If you wanted to use cron, you'd need to wrap up GoodJob.cleanup_preserved_jobs in a job, and then configure that.
In
Clockwork
I can do it like this:How can I do the same in good_job cron? I tried with this:
but it not working. Error:
/user/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/good_job-2.0.5/lib/good_job/cron_manager.rb:87:in
create_task': undefined methodnext_time' for nil:NilClass (NoMethodError)
The text was updated successfully, but these errors were encountered: