discourse/app/jobs/onceoff/remove_old_auto_close_jobs.rb

13 lines
305 B
Ruby
Raw Normal View History

# frozen_string_literal: true
module Jobs
class RemoveOldAutoCloseJobs < Jobs::Onceoff
def execute_onceoff(args)
2017-04-06 13:45:59 +08:00
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.
end
end
end