Class: DailyUnprintedChecksDigestWorker
- Inherits:
-
Object
- Object
- DailyUnprintedChecksDigestWorker
- Includes:
- Sidekiq::Job
- Defined in:
- app/workers/daily_unprinted_checks_digest_worker.rb
Instance Method Summary collapse
Instance Method Details
#perform ⇒ Object
8 9 10 11 12 13 14 15 16 |
# File 'app/workers/daily_unprinted_checks_digest_worker.rb', line 8 def perform result = OutgoingPayment.with_advisory_lock_result( "daily_unprinted_checks_digest", timeout_seconds: 0 ) do OutgoingPayment.send_daily_unprinted_checks_digest end Rails.logger.info("DailyUnprintedChecksDigestWorker skipped — lock held by another process") unless result.lock_was_acquired? end |