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

Added 2 backends for running target functions with support to set per_attempt_timeout for target functions #24

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

anandsanto
Copy link

  • 'multithreading' and 'multiprocessing' backends
  • Added support for per_attempt_timeout so that an attempt does exceed this timout
  • In 'multiprocessing' backend, the child process running the target is killed after the per_attempt_timeout to free resources

-  'multithreading' and 'multiprocessing' backends
-  Added support for per_attempt_timeout so that an attempt does exceed this timout
-  In 'multiprocessing' backend, the child process running the target is killed after the per_attempt_timeout to free resources
@ddmee ddmee self-requested a review September 20, 2021 09:12
@ddmee
Copy link
Owner

ddmee commented Sep 20, 2021

Hi @anandsanto sorry for being slow to review this. I saw the PR and then forgot about it, as I got distracted. Apologies for this.

This looks like an interesting extension to the polling function. The multithreading and muliprocessing is cool.

I haven't written a lot of multi-threaded applications. So I'm a bit of a novice with parallel code.

I'm beginning to think the poll function is getting too big, with too many arguments. What would you think if we spilt the parallel stuff out into a new second function called parra_poll() or something like that?

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

2 participants