Class: Cloudtasker::UniqueJob::Middleware::Server
- Inherits:
-
Object
- Object
- Cloudtasker::UniqueJob::Middleware::Server
- Defined in:
- lib/cloudtasker/unique_job/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/unique_job/middleware/server.rb', line 8 def call(worker, **_kwargs, &block) Job.new(worker).lock_instance.execute(&block) end |