diff --git a/app/jobs/onceoff/remove_old_auto_close_jobs.rb b/app/jobs/onceoff/remove_old_auto_close_jobs.rb index 17dbfc9284f..756cb26d048 100644 --- a/app/jobs/onceoff/remove_old_auto_close_jobs.rb +++ b/app/jobs/onceoff/remove_old_auto_close_jobs.rb @@ -1,7 +1,7 @@ module Jobs class RemoveOldAutoCloseJobs < Jobs::Onceoff def execute_onceoff(args) - Jobs.cancel_scheduled_for(:close_topic) + Jobs.cancel_scheduled_job(:close_topic) # No need to enqueue new jobs since we have a scheduled job that will # automatically enqueue the new jobs.