blob: 27fac39e1508c79a1b50c0077da07fbcae984f9f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
# frozen_string_literal: true
class Scheduler::PublishStatusScheduler
include Sidekiq::Worker
sidekiq_options lock: :until_executed, retry: 0
def perform
Status.ready_to_publish.find_each { |status| PublishStatusService.new.call(status) }
end
end
|