Sha256: 258a256f71499b224da64ecf280a32c3289fcfa7f2910c3ffbebfb4980796238

Contents?: true

Size: 899 Bytes

Versions: 51

Compression:

Stored size: 899 Bytes

Contents

# frozen_string_literal: true

require 'cloudtasker/redis_client'

require_relative 'lock_error'

require_relative 'conflict_strategy/base_strategy'
require_relative 'conflict_strategy/raise'
require_relative 'conflict_strategy/reject'
require_relative 'conflict_strategy/reschedule'

require_relative 'lock/base_lock'
require_relative 'lock/no_op'
require_relative 'lock/until_executed'
require_relative 'lock/until_executing'
require_relative 'lock/while_executing'

require_relative 'job'

require_relative 'middleware/client'
require_relative 'middleware/server'

module Cloudtasker
  module UniqueJob
    # Registration module
    module Middleware
      def self.configure
        Cloudtasker.configure do |config|
          config.client_middleware { |c| c.add(Middleware::Client) }
          config.server_middleware { |c| c.add(Middleware::Server) }
        end
      end
    end
  end
end

Version data entries

51 entries across 51 versions & 1 rubygems

Version Path
cloudtasker-0.14.rc1 lib/cloudtasker/unique_job/middleware.rb
cloudtasker-0.13.2 lib/cloudtasker/unique_job/middleware.rb
cloudtasker-0.13.1 lib/cloudtasker/unique_job/middleware.rb
cloudtasker-0.13.0 lib/cloudtasker/unique_job/middleware.rb
cloudtasker-0.13.rc2 lib/cloudtasker/unique_job/middleware.rb
cloudtasker-0.13.rc1 lib/cloudtasker/unique_job/middleware.rb
cloudtasker-0.12.2 lib/cloudtasker/unique_job/middleware.rb
cloudtasker-0.12.1 lib/cloudtasker/unique_job/middleware.rb
cloudtasker-0.11.1 lib/cloudtasker/unique_job/middleware.rb
cloudtasker-0.10.2 lib/cloudtasker/unique_job/middleware.rb
cloudtasker-0.9.5 lib/cloudtasker/unique_job/middleware.rb
cloudtasker-0.12.0 lib/cloudtasker/unique_job/middleware.rb
cloudtasker-0.12.rc11 lib/cloudtasker/unique_job/middleware.rb
cloudtasker-0.12.rc10 lib/cloudtasker/unique_job/middleware.rb
cloudtasker-0.12.rc9 lib/cloudtasker/unique_job/middleware.rb
cloudtasker-0.12.rc8 lib/cloudtasker/unique_job/middleware.rb
cloudtasker-0.12.rc7 lib/cloudtasker/unique_job/middleware.rb
cloudtasker-0.12.rc6 lib/cloudtasker/unique_job/middleware.rb
cloudtasker-0.12.rc5 lib/cloudtasker/unique_job/middleware.rb
cloudtasker-0.12.rc4 lib/cloudtasker/unique_job/middleware.rb