Skip to content

Conversation

matllubos
Copy link
Contributor

No description provided.

from .config import settings


# Copied from:
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

new redis already supports it

self.lock.extend(int(self.lock_timeout), replace_ttl=True)
res = super().tick(*args, **kwargs)
return res
return min(res, self.lock_sleep)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tick must be lower than lock_timeout

@rubickcz
Copy link
Member

rubickcz commented Sep 1, 2020

Approved, but you've decreased code coverage.

@matllubos matllubos merged commit 49cde02 into master Sep 1, 2020
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

Successfully merging this pull request may close these issues.

2 participants