Class: Cloudtasker::UniqueJob::Middleware::Client
- Inherits:
-
Object
- Object
- Cloudtasker::UniqueJob::Middleware::Client
- Defined in:
- lib/cloudtasker/unique_job/middleware/client.rb
Overview
TODO: kwargs to job otherwise it won’t get the time_at Client middleware, invoked when jobs are scheduled
Instance Method Summary collapse
Instance Method Details
#call(worker, _opts = {}) ⇒ Object
9 10 11 |
# File 'lib/cloudtasker/unique_job/middleware/client.rb', line 9 def call(worker, _opts = {}) Job.new(worker).lock_instance.schedule { yield } end |