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

Consider using manager_poll in executor/task wait function #897

Open
shuds13 opened this issue Aug 31, 2022 · 0 comments
Open

Consider using manager_poll in executor/task wait function #897

shuds13 opened this issue Aug 31, 2022 · 0 comments

Comments

@shuds13
Copy link
Member

shuds13 commented Aug 31, 2022

This could be added to the wait function to kill a running application on receiving a kill signal (similar to the polling_loop function). Probably using an optional argument.

One issue to consider here that wait works on a task, and so automatically kills the current task. How would this work in a multiple task scenario. The use of push back in manager_poll may already enable this to work if applied to multiple tasks.

As manager_poll is an executor function, it may be that this would need to be an executor rather than a task function - similar to polling_loop.

In that case, ability to add a list of tasks could also be considered.

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