lib/sidekiq_publisher/tasks.rake in sidekiq_publisher-1.6.1 vs lib/sidekiq_publisher/tasks.rake in sidekiq_publisher-1.6.2

- old
+ new

@@ -1,7 +1,10 @@ # frozen_string_literal: true namespace :sidekiq_publisher do task publish: [:environment] do + Signal.trap("INT") { exit(0) } + Signal.trap("TERM") { exit(0) } + SidekiqPublisher::Runner.run end end