Sha256: e280f33f4cc3e0c8c128c0d3f3e64596994a78b6b81b0134fcdd57cf603bcd2b

Contents?: true

Size: 914 Bytes

Versions: 17

Compression:

Stored size: 914 Bytes

Contents

require 'canvas_sync/job_uniqueness/lock_context'
require 'canvas_sync/job_uniqueness/unique_job_common'

require 'canvas_sync/job_uniqueness/strategy'
require 'canvas_sync/job_uniqueness/on_conflict'
require 'canvas_sync/job_uniqueness/compat'

module CanvasSync::JobUniqueness
  extend ActiveSupport::Autoload

  autoload :Locksmith
  autoload :Configuration

  class Conflict < StandardError
    attr_reader :lock_context

    def initialize(lock_context)
      super()
      @lock_context = lock_context
    end
  end

  class CouldNotLockError < StandardError
    attr_reader :lock_context, :source

    def initialize(lock_context, source:)
      super()
      @lock_context = lock_context
      @source = source
    end
  end

  class << self
    def configure
      yield config
    end

    def config
      @config ||= Configuration.new
    end

    def logger
      CanvasSync.logger
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
canvas_sync-0.22.9 lib/canvas_sync/job_uniqueness/job_uniqueness.rb
canvas_sync-0.22.8 lib/canvas_sync/job_uniqueness/job_uniqueness.rb
canvas_sync-0.22.6 lib/canvas_sync/job_uniqueness/job_uniqueness.rb
canvas_sync-0.22.5 lib/canvas_sync/job_uniqueness/job_uniqueness.rb
canvas_sync-0.22.4 lib/canvas_sync/job_uniqueness/job_uniqueness.rb
canvas_sync-0.22.3 lib/canvas_sync/job_uniqueness/job_uniqueness.rb
canvas_sync-0.22.2 lib/canvas_sync/job_uniqueness/job_uniqueness.rb
canvas_sync-0.22.1 lib/canvas_sync/job_uniqueness/job_uniqueness.rb
canvas_sync-0.22.0 lib/canvas_sync/job_uniqueness/job_uniqueness.rb
canvas_sync-0.22.0.beta8 lib/canvas_sync/job_uniqueness/job_uniqueness.rb
canvas_sync-0.22.0.beta7 lib/canvas_sync/job_uniqueness/job_uniqueness.rb
canvas_sync-0.22.0.beta6 lib/canvas_sync/job_uniqueness/job_uniqueness.rb
canvas_sync-0.22.0.beta5 lib/canvas_sync/job_uniqueness/job_uniqueness.rb
canvas_sync-0.22.0.beta4 lib/canvas_sync/job_uniqueness/job_uniqueness.rb
canvas_sync-0.22.0.beta3 lib/canvas_sync/job_uniqueness/job_uniqueness.rb
canvas_sync-0.22.0.beta2 lib/canvas_sync/job_uniqueness/job_uniqueness.rb
canvas_sync-0.22.0.beta1 lib/canvas_sync/job_uniqueness/job_uniqueness.rb