Sha256: 4c20d65a803552868e2a6a4a121859b481c2235e2f5fd1519771ee7bf50fff95

Contents?: true

Size: 291 Bytes

Versions: 21

Compression:

Stored size: 291 Bytes

Contents

# frozen_string_literal: true

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

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
cloudtasker-0.9.5 lib/cloudtasker/unique_job/middleware/server.rb
cloudtasker-0.9.4 lib/cloudtasker/unique_job/middleware/server.rb
cloudtasker-0.9.3 lib/cloudtasker/unique_job/middleware/server.rb
cloudtasker-0.10.rc5 lib/cloudtasker/unique_job/middleware/server.rb
cloudtasker-0.10.rc4 lib/cloudtasker/unique_job/middleware/server.rb
cloudtasker-0.10.rc3 lib/cloudtasker/unique_job/middleware/server.rb
cloudtasker-0.10.rc2 lib/cloudtasker/unique_job/middleware/server.rb
cloudtasker-0.10.rc1 lib/cloudtasker/unique_job/middleware/server.rb
cloudtasker-0.9.2 lib/cloudtasker/unique_job/middleware/server.rb
cloudtasker-0.9.1 lib/cloudtasker/unique_job/middleware/server.rb
cloudtasker-0.9.0 lib/cloudtasker/unique_job/middleware/server.rb
cloudtasker-0.8.2 lib/cloudtasker/unique_job/middleware/server.rb
cloudtasker-0.8.1 lib/cloudtasker/unique_job/middleware/server.rb
cloudtasker-0.8.0 lib/cloudtasker/unique_job/middleware/server.rb
cloudtasker-0.7.0 lib/cloudtasker/unique_job/middleware/server.rb
cloudtasker-0.6.0 lib/cloudtasker/unique_job/middleware/server.rb
cloudtasker-0.5.0 lib/cloudtasker/unique_job/middleware/server.rb
cloudtasker-0.4.0 lib/cloudtasker/unique_job/middleware/server.rb
cloudtasker-0.3.0 lib/cloudtasker/unique_job/middleware/server.rb
cloudtasker-0.2.0 lib/cloudtasker/unique_job/middleware/server.rb