Class: Cloudtasker::Cron::Middleware::Server

Inherits:
Object
  • Object
show all
Defined in:
lib/cloudtasker/cron/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/cron/middleware/server.rb', line 8

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