Class: Cloudtasker::Batch::Middleware::Server

Inherits:
Object
  • Object
show all
Defined in:
lib/cloudtasker/batch/middleware/server.rb

Overview

Server middleware, invoked when jobs are executed

Instance Method Summary collapse

Instance Method Details

#call(worker, **_kwargs, &block) ⇒ Object



8
9
10
# File 'lib/cloudtasker/batch/middleware/server.rb', line 8

def call(worker, **_kwargs, &block)
  Job.for(worker).execute(&block)
end