TODO comment
This commit is contained in:
parent
8367326e76
commit
7ccfc40389
|
@ -19,6 +19,11 @@ setup_log
|
||||||
|
|
||||||
module Clockwork
|
module Clockwork
|
||||||
handler do |job|
|
handler do |job|
|
||||||
|
# TODO: we need to rethink scheduling here, cancel scheduled jobs
|
||||||
|
# iterates through all jobs, that is massively inefficient
|
||||||
|
# Jobs.cancel_scheduled_job(job, all_sites: true)
|
||||||
|
#
|
||||||
|
# see: http://meta.discourse.org/t/auto-close-behaviour/8249/2
|
||||||
Jobs.enqueue(job, all_sites: true)
|
Jobs.enqueue(job, all_sites: true)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue