-
Notifications
You must be signed in to change notification settings - Fork 20
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
Staggered Parallel Process #142
Comments
Hi @iamkenos, I perfectly understand your concerns, as we are changing in v4.x the approach to perform parallel executions, and despite we can start performing more stable parallel executions, the internal behavior is not the same. We will analyze if there are place for improvements in the way the ProcessPoolExecutor works. In the meantime, I like the idea of adding an execution argument like --parallel-staggered-start to accept a value that enable stagger spinning up processes. That would be also a feature that we consider would be useful for many users (even for us). I'll reply soon indicating if this can be included in upcoming version. Thanks for giving us visibility on the issues you are experiencing |
hi @anibalinn @hrcorval thanks for the quick responses and patches. i'm not sure how to build the thing from the PR branch but i see that there's already one open scheduled for the next release so i'll wait for that and test from the new package if that works? thanks again! you guys are champs 💪🏻 |
Hi @iamkenos, We did a couple of improvements in the way the parallel processes are being managed, and also we have provided the --parallel-delay argument, that allows users to control the delay between starting parallel processes. Latest version: https://pypi.org/project/behavex/4.0.5/ We hope it helps! |
hey gents, thanks for the timely updates. i'll take it for a spin some time this week and will keep you all updated. huge thanks!! |
hi team, thanks for the patience and support. the parallel stagger helped. we can close this feature request now. 🥇 |
Thanks for your feedback. We are glad to see it worked. Regards |
Problem context
behavex 1.6
ms
window.behavex 1.6
to run our tests with parallel process enabled is running smooth - no rate limit errors from the API4.x
to use the new and improved features that thebehavex
has worked onI'm not quite sure what exactly is the culprit but from a user perspective, one can say that concurrency was working smoother in
1.6
than>= 3.x
.Is your feature request related to a problem? Please describe.
We would like to have the ability to optionally stagger spinning up threads during parallel execution.
Describe the solution you'd like
I'm thinking of an optional
--parallel-staggered-start
or something similar that accepts a value inmilliseconds
.Internally, this value (when present) will be used to stagger the process spinup. if not present, handle as-is.
Describe alternatives you've considered
We already installed a retry feature on the API request via a module called
backoff
but that didnt really help so much.Hope you can consider this request and thanks for all your work!
The text was updated successfully, but these errors were encountered: