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

Allow cancellation of a task #16

Open
CermakM opened this issue Mar 21, 2024 · 0 comments
Open

Allow cancellation of a task #16

CermakM opened this issue Mar 21, 2024 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@CermakM
Copy link

CermakM commented Mar 21, 2024

Is your feature request related to a problem? Please describe.
Currently, there is no way to control the execution of a long running task. The manager does not respect cancellation of the context of the task and it's not possible to kill the task from any of the lifecycle hooks.

While it's a valid argument that a task should continue it's execution if ran from the request of a context after that context has been cancelled, I believe some control is needed over that task.

Describe the solution you'd like
To be able to cancel a single task. I think a possible solution would be for the RunTask function to return a cancel func.

@CermakM CermakM added the enhancement New feature or request label Mar 21, 2024
@CermakM CermakM added this to the v0.1 milestone Mar 21, 2024
@robertrossmann robertrossmann modified the milestones: v0.1, v0.2 Apr 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants