Skip to content

Redis locks ttl#434

Merged
tjmehta merged 13 commits intomasterfrom
redis-locks-ttl
Dec 16, 2014
Merged

Redis locks ttl#434
tjmehta merged 13 commits intomasterfrom
redis-locks-ttl

Conversation

@podviaznikov
Copy link
Copy Markdown
Member

Add expires time to the redis mutex. By default after 10 mins all locks would be gone.

@anandkumarpatel
Copy link
Copy Markdown
Contributor

this one LGTM, but have you tested this yet?

@podviaznikov
Copy link
Copy Markdown
Member Author

@anandkumarpatel what do you mean by "tested"? Some specific behavior or if locks will be removed after expiration period?

@anandkumarpatel
Copy link
Copy Markdown
Contributor

as in, do you have a branch of API server running this right now on IO so we can test it before we put it on staging

Comment thread configs/.env Outdated
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

use eson to translate readable value to ms

@tjmehta
Copy link
Copy Markdown
Contributor

tjmehta commented Dec 16, 2014

👍

@tjmehta
Copy link
Copy Markdown
Contributor

tjmehta commented Dec 16, 2014

@anandkumarpatel he has a unit test. will not be able to test in reality since all locks currently unlock themselves.

@anandkumarpatel
Copy link
Copy Markdown
Contributor

No I mean like test on io just to ensure all functions work.
On Dec 15, 2014 7:42 PM, "Tejesh Mehta" notifications@github.com wrote:

@anandkumarpatel https://github.com/anandkumarpatel he has a unit test.
will not be able to test in reality since all locks currently unlock
themselves.


Reply to this email directly or view it on GitHub
#434 (comment).

Comment thread unit/redis-mutex.js Outdated
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

can you just set this value in .env.test

@tjmehta
Copy link
Copy Markdown
Contributor

tjmehta commented Dec 16, 2014

verified on tj-stage and anton-stage

tjmehta added a commit that referenced this pull request Dec 16, 2014
@tjmehta tjmehta merged commit ad4975e into master Dec 16, 2014
@tjmehta tjmehta deleted the redis-locks-ttl branch December 16, 2014 20:58
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.

3 participants