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) ⇒ Object



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

def call(worker, **_kwargs)
  Job.for(worker).execute { yield }
end