You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The base class of the Lock constructor suggests the timeout is configurable:
@timeout = options[:timeout] || 60 * 3
However, in the locking module, there is no way to put in the options with code like this. How do we easily change the configuration without changing the source code?
def build_master_lock
if supports_lua?
Resque::Scheduler::Lock::Resilient.new(master_lock_key)
else
Resque::Scheduler::Lock::Basic.new(master_lock_key)
end
end
The text was updated successfully, but these errors were encountered:
Hi,
The base class of the Lock constructor suggests the timeout is configurable:
@timeout = options[:timeout] || 60 * 3
However, in the locking module, there is no way to put in the options with code like this. How do we easily change the configuration without changing the source code?
The text was updated successfully, but these errors were encountered: