Sha256: 495f644c73010f67cfe9c127c7262d9eebabfd0331af4bf5cc04290bb1d6b00f
Contents?: true
Size: 562 Bytes
Versions: 23
Compression:
Stored size: 562 Bytes
Contents
# frozen_string_literal: true require 'cloudtasker/redis_client' require_relative 'extension/worker' require_relative 'batch_progress' require_relative 'job' require_relative 'middleware/server' module Cloudtasker module Batch # Registration module module Middleware def self.configure Cloudtasker.configure do |config| config.server_middleware { |c| c.add(Middleware::Server) } end # Inject worker extension on main module Cloudtasker::Worker.include(Extension::Worker) end end end end
Version data entries
23 entries across 23 versions & 1 rubygems
Version | Path |
---|---|
cloudtasker-0.12.rc1 | lib/cloudtasker/batch/middleware.rb |
cloudtasker-0.11.0 | lib/cloudtasker/batch/middleware.rb |
cloudtasker-0.11.rc3 | lib/cloudtasker/batch/middleware.rb |