mirror of
https://github.com/discourse/discourse.git
synced 2025-02-16 18:24:52 -06:00
Merge pull request #4794 from tgxworld/nuke_old_auto_close_jobs
FIX: Add onceoff job to remove old auto close topic sidekiq jobs.
This commit is contained in:
commit
e0e06c2992
10
app/jobs/onceoff/remove_old_auto_close_jobs.rb
Normal file
10
app/jobs/onceoff/remove_old_auto_close_jobs.rb
Normal file
@ -0,0 +1,10 @@
|
||||
module Jobs
|
||||
class RemoveOldAutoCloseJobs < Jobs::Onceoff
|
||||
def execute_onceoff(args)
|
||||
Jobs.cancel_scheduled_for(:close_topic)
|
||||
|
||||
# No need to enqueue new jobs since we have a scheduled job that will
|
||||
# automatically enqueue the new jobs.
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Reference in New Issue
Block a user