Class: Cloudtasker::UniqueJob::Middleware::Client

Inherits:
Object
  • Object
show all
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 = {}, &block) ⇒ Object



9
10
11
# File 'lib/cloudtasker/unique_job/middleware/client.rb', line 9

def call(worker, _opts = {}, &block)
  Job.new(worker).lock_instance.schedule(&block)
end