Task Cancellation is broken for queued tasks
See original GitHub issueWhat is the problem?
- After #11051 , tasks that are not yet executing may not be cancellable.
- Tasks cancellation is implemented for tasks that are pending a lease, or are currently running on the worker
Change needed
- Basically HandleCancelTask should also ask
direct_task_receiver_to cancel a task (delete it from queue)
- I have verified my script runs in a clean environment and reproduces the issue.
- I have verified the issue also occurs with the latest wheels.
Issue Analytics
- State:
- Created 3 years ago
- Comments:10 (10 by maintainers)
Top Results From Across the Web
How to cancel all queued BOSH tasks using director_ctl in ...
1. Login to BOSH Director VM using vcap credentials ( vcap credentials can be found on the Operations Manager Director tile, Credentials tab):...
Read more >Task from task group doesn't receive cancellation state when ...
Using a dispatch queue takes you out of a context where you can use Task.isCancelled anymore. If possible, I would encourage you to...
Read more >Task Cancellation | Microsoft Learn
The preferred way to perform is to use the ThrowIfCancellationRequested method. A task that's canceled in this way transitions to the Canceled ...
Read more >An Empirical Study of Task Cancellation Patterns and Failures
This paper attempts to provide an in-depth analysis of cancellation usage and problems in popular software appli- cations across multiple ...
Read more >Satellite: How a stuck task can be removed. Always open a ...
The task to remove the repository failed due to the old locks. ... foreman_tasks:cleanup TASK_SEARCH='result == pending' STATES='stopped' ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@starpit I guess this might be a separate issue. Do you mind creating an issue and tag me there?
@rkooo567 just need to fix a couple of build errors