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

Fixing redis locking for 5000 seconds unintentionally #5

Merged
merged 1 commit into from
Apr 20, 2021

Conversation

karljin
Copy link
Contributor

@karljin karljin commented Jun 20, 2020

Same problem as what we see in transmissions

@karljin karljin requested a review from manav June 20, 2020 03:40
@markhsu-ms
Copy link
Contributor

@karljin I think this PR is still valid right?

Copy link
Contributor

@manav manav left a comment

Choose a reason for hiding this comment

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

I don't recall anymore. Would recommend a fresh look. I would keep the number of unknowns minimum for py3 migrations.

@@ -15,13 +15,13 @@


@contextlib.contextmanager
def simple_lock(lock_key, timeout=5000):
Copy link
Contributor

Choose a reason for hiding this comment

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

is 5 sec enough ? should we make it longer.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

it's always been meant to be 5 seconds. the fact that it's locking for 5000 seconds is purely accidental and "bad"

Copy link
Contributor

@manav manav left a comment

Choose a reason for hiding this comment

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

assuming this can be tested properly

Copy link
Contributor

@markhsu-ms markhsu-ms left a comment

Choose a reason for hiding this comment

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

LGTM

@karljin karljin merged commit 40c929c into master Apr 20, 2021
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.

None yet

4 participants