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 cancel a job automatically if it's not completed in a certain amount of time? #315

Open
akshay-zz opened this issue Jan 6, 2022 · 1 comment

Comments

@akshay-zz
Copy link

Is there's any way to cancel a job after certain amount of time it it's still executing. Also any oncancelled callback function/Event just to log the things.

@akshay-zz akshay-zz changed the title How to cancel a job automatically if it's not complete in a certain amount of time? How to cancel a job automatically if it's not completed in a certain amount of time? Jan 6, 2022
@tallesl
Copy link
Contributor

tallesl commented Jul 26, 2024

That's a nice suggestion.

It's always tricky to 'kill' things that are running, but maybe we can arrange something (maybe cancelling a cancellationtoken for the caller to manage).

There's a fancy name for "cancelling something if it's not completed in a certain amount of time" by the way: "timeout" ;)

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

2 participants