Sha256: 7e71b5422fbaae0d54b17db74be9300f621905cef69ab43b47c7eaa8773a2ca4

Contents?: true

Size: 284 Bytes

Versions: 30

Compression:

Stored size: 284 Bytes

Contents

# frozen_string_literal: true

module Cloudtasker
  module Batch
    module Middleware
      # Server middleware, invoked when jobs are executed
      class Server
        def call(worker, **_kwargs)
          Job.for(worker).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/batch/middleware/server.rb
cloudtasker-0.13.1 lib/cloudtasker/batch/middleware/server.rb
cloudtasker-0.13.0 lib/cloudtasker/batch/middleware/server.rb
cloudtasker-0.13.rc2 lib/cloudtasker/batch/middleware/server.rb
cloudtasker-0.13.rc1 lib/cloudtasker/batch/middleware/server.rb
cloudtasker-0.12.2 lib/cloudtasker/batch/middleware/server.rb
cloudtasker-0.12.1 lib/cloudtasker/batch/middleware/server.rb
cloudtasker-0.11.1 lib/cloudtasker/batch/middleware/server.rb
cloudtasker-0.10.2 lib/cloudtasker/batch/middleware/server.rb
cloudtasker-0.12.0 lib/cloudtasker/batch/middleware/server.rb
cloudtasker-0.12.rc11 lib/cloudtasker/batch/middleware/server.rb
cloudtasker-0.12.rc10 lib/cloudtasker/batch/middleware/server.rb
cloudtasker-0.12.rc9 lib/cloudtasker/batch/middleware/server.rb
cloudtasker-0.12.rc8 lib/cloudtasker/batch/middleware/server.rb
cloudtasker-0.12.rc7 lib/cloudtasker/batch/middleware/server.rb
cloudtasker-0.12.rc6 lib/cloudtasker/batch/middleware/server.rb
cloudtasker-0.12.rc5 lib/cloudtasker/batch/middleware/server.rb
cloudtasker-0.12.rc4 lib/cloudtasker/batch/middleware/server.rb
cloudtasker-0.12.rc3 lib/cloudtasker/batch/middleware/server.rb
cloudtasker-0.12.rc2 lib/cloudtasker/batch/middleware/server.rb