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

How to quickly terminate a running flow? Some flows may contain dead loop tasks #583

Open
willstudy opened this issue Apr 30, 2024 · 2 comments
Labels
question Further information is requested

Comments

@willstudy
Copy link

Our flow will run user-defined code, including dead loops。

RequestCancellation can not kill dead loops。

@willstudy willstudy changed the title How to quickly terminate a running flow? How to quickly terminate a running flow? Some flows may contain some dead loop tasks Apr 30, 2024
@willstudy
Copy link
Author

Use POSIX pthread instead of std::thread? pthread_cancel kill dead loops task?

@willstudy willstudy changed the title How to quickly terminate a running flow? Some flows may contain some dead loop tasks How to quickly terminate a running flow? Some flows may contain dead loop tasks Apr 30, 2024
@tsung-wei-huang
Copy link
Member

Perhaps a code example showing your problem might be better for me to understand what a dead loop means. The termination of Taskflow should have no dependency on this scenario.

@tsung-wei-huang tsung-wei-huang added the question Further information is requested label May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants