Sha256: a0ab3be80efc942998d8d2e3b75c71d842a997047c72bcb3d15ee6074c5fa709

Contents?: true

Size: 302 Bytes

Versions: 30

Compression:

Stored size: 302 Bytes

Contents

# frozen_string_literal: true

module Cloudtasker
  module UniqueJob
    module Middleware
      # Server middleware, invoked when jobs are executed
      class Server
        def call(worker, **_kwargs)
          Job.new(worker).lock_instance.execute { yield }
        end
      end
    end
  end
end

Version data entries

30 entries across 30 versions & 1 rubygems

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