question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Task Cancellation is broken for queued tasks

See original GitHub issue

What 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:open
  • Created 3 years ago
  • Comments:10 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
rkooo567commented, Aug 31, 2022

@starpit I guess this might be a separate issue. Do you mind creating an issue and tag me there?

1reaction
gabrieleoliarocommented, Dec 2, 2020

@rkooo567 just need to fix a couple of build errors

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found