Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to configure Lock timeout #700

Open
allensds opened this issue Jul 6, 2020 · 0 comments
Open

How to configure Lock timeout #700

allensds opened this issue Jul 6, 2020 · 0 comments

Comments

@allensds
Copy link

allensds commented Jul 6, 2020

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?

 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant