9014367bd8
Also: - Fix locks not being removed when jobs go to the dead job queue - Add UI for managing locks to the Sidekiq dashboard - Remove unused Sidekiq workers Fix #13349
14 líneas
301 B
Ruby
14 líneas
301 B
Ruby
# frozen_string_literal: true
|
|
|
|
class RegenerationWorker
|
|
include Sidekiq::Worker
|
|
|
|
sidekiq_options lock: :until_executed
|
|
|
|
def perform(account_id, _ = :home)
|
|
account = Account.find(account_id)
|
|
PrecomputeFeedService.new.call(account)
|
|
rescue ActiveRecord::RecordNotFound
|
|
true
|
|
end
|
|
end
|