Fix Scheduler::SubscriptionsScheduler (#2834)
* Fix Scheduler::SubscriptionsScheduler, add worker test for it * Change production log level of Sidekiq to "warn" instead of "info"
This commit is contained in:
@ -1,11 +1,11 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class DistributionWorker < ApplicationWorker
|
||||
class DistributionWorker
|
||||
include Sidekiq::Worker
|
||||
|
||||
def perform(status_id)
|
||||
FanOutOnWriteService.new.call(Status.find(status_id))
|
||||
rescue ActiveRecord::RecordNotFound
|
||||
info("Couldn't find the status")
|
||||
true
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user