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

Use redis key to pause or slow down scripterator run #4

Open
lost-theory opened this issue Jun 6, 2014 · 0 comments
Open

Use redis key to pause or slow down scripterator run #4

lost-theory opened this issue Jun 6, 2014 · 0 comments

Comments

@lost-theory
Copy link

Sometimes we need to pause / scale back on how fast a parallel scripterator run is running because it's causing too much load, causing performance problems, we want to investigate some errors, etc.

It'd be cool to have a flag in redis that controlled this.

For example if one_timer_script:blabla:paused exists it would pause on the next ID and wait for that key to be deleted.

Or if one_timer_script:blabla:delay was set to 0.5 it would sleep 0.5 seconds before processing the next ID.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant