Class: CanvasSync::JobUniqueness::OnConflict::Log

Inherits:
Base
  • Object
show all
Defined in:
lib/canvas_sync/job_uniqueness/on_conflict/log.rb

Instance Attribute Summary

Attributes inherited from Base

#lock_context, #redis_pool

Instance Method Summary collapse

Methods inherited from Base

#initialize, #replace?, valid_for

Constructor Details

This class inherits a constructor from CanvasSync::JobUniqueness::OnConflict::Base

Instance Method Details

#callObject



6
7
8
9
10
# File 'lib/canvas_sync/job_uniqueness/on_conflict/log.rb', line 6

def call
  CanvasSync::JobUniqueness.logger.info(<<~MESSAGE.chomp)
    Skipping job with id (#{lock_context.job_id}) because key: (#{lock_context.base_key}) is locked
  MESSAGE
end