mirror of
https://github.com/discourse/discourse.git
synced 2024-11-30 19:05:18 +08:00
11 lines
274 B
Ruby
11 lines
274 B
Ruby
module Jobs
|
|
class RemoveOldAutoCloseJobs < Jobs::Onceoff
|
|
def execute_onceoff(args)
|
|
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
|