我将 Sidetiq 和 Sidekiq 一起用于重复性工作:
include Sidekiq::Worker
include Sidetiq::Schedulable
recurrence { secondly(3) }
def perform(id,last_occurrence)
# magic happens
end
但是,现在我想停止整个排队过程。我想从 Sidetiq 中删除所有进程。我能怎么做?
我将 Sidetiq 和 Sidekiq 一起用于重复性工作:
include Sidekiq::Worker
include Sidetiq::Schedulable
recurrence { secondly(3) }
def perform(id,last_occurrence)
# magic happens
end
但是,现在我想停止整个排队过程。我想从 Sidetiq 中删除所有进程。我能怎么做?