module Cloudtasker::UniqueJob

UniqueJob configurator

Constants

DEFAULT_LOCK_TTL

The maximum duration a lock can remain in place after schedule time.

Attributes

lock_ttl[W]

Public Class Methods

configure() { |self| ... } click to toggle source

Configure the middleware

# File lib/cloudtasker/unique_job.rb, line 18
def configure
  yield(self)
end
lock_ttl() click to toggle source

Return the max TTL for locks

@return [Integer] The lock TTL.

# File lib/cloudtasker/unique_job.rb, line 27
def lock_ttl
  @lock_ttl || DEFAULT_LOCK_TTL
end