1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00

Allow killing of scheduled jobs, fixes #3390

This commit is contained in:
Mike Perham 2017-03-16 11:05:29 -07:00
parent 60cdf04955
commit 456894f36e

View file

@ -434,7 +434,6 @@ module Sidekiq
##
# Place job in the dead set
def kill
raise 'Kill not available on jobs which have not failed' unless item['failed_at']
remove_job do |message|
Sidekiq.logger.info { "Killing job #{message['jid']}" }
now = Time.now.to_f