Does not stop an existing task
See original GitHub issueIf I had not noticed this, the action would have waited forever, burning my action credits.
service xxx was unable to place a task because no container instance met all of its requirements. The closest matching container-instance xxx is already using a port required by your task. For more information, see the Troubleshooting section.
Is there a way to kill the existing task that it would be replacing first?
I also manually stopped the task and it deployed out, but the action kept on spinning like it was still waiting for a status update.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:6
- Comments:6 (1 by maintainers)
Top Results From Across the Web
How to cancel an existing task being run using Task.Run()?
1 Answer 1 ... await Task.Delay(waitTime, token1);. When the token is signaled, the delay will end. No need to do that in a...
Read more >7 things you can do with the existing tasks from Task Scheduler
You can stop a running task from completing its actions by ending it. To do this, select the task and, under Selected Item,...
Read more >Task Cancellation | Microsoft Learn
Cancel method and the user delegate terminating the operation in a timely manner. You can terminate the operation by using one of these...
Read more >Windows Task Scheduler doesn't run last instance - Super User
On the Settings tab at the bottom, it says: If the task is already running, the following rule applies: Stop the existing instance....
Read more >Task | Apple Developer Documentation
A Boolean value that indicates whether the task should stop executing. Available when Success is Never and Failure is Never . static ...
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 FreeTop 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
Top GitHub Comments
@mding5692 @theogravity forcing a new deployment will cycle the tasks, but will not result in the old tasks being killed prior to new ones starting if your deployment configuration has a (default)
minimumHealthyPercent
of 100%.So if your service is running and consuming all the resources available in your cluster (we’re talking EC2 launch type, as per above error msg), then the service will try to start a new task first and that will fail b/c there’s no more capacity. Lowering the
minimumHealthyPercent
will allow existing tasks to be killed prior to new ones starting (see link for more info)I need something similar. Ideally, it would replace any existing task on the service - or stop other tasks on the service once it starts successfully.
My use case is keeping a staging environment up to date when new code is pushed.