How to cancel job in "Cancelling" state

How to cancel job in "Cancelling" state

avatar
(anonymous user)
Product: PowerShell Universal
Version: 4.2.12


I have a few jobs on different schedules for the same script that never stopped running, causing other successive jobs to start failing. I cancelled the jobs and while other jobs were able to run successfully, the job never left the Cancelling state. This is starting to happen for multiple jobs:



845a8e94c9532d1494d41161ec5f5925d9413917
Is there any way to cancel these jobs? My first thought was the Task Manager, but without being able to correctly ID the process I am afraid to end a process without knowing what it is for. Is there any other way to ensure the job is cancelled? I have already tried restarting the PowerShellUniversal service, but the job never left the Cancelling state. I have also tried Get-PSUJob -Id 3744 | Stop-PSUJob, but it with no effect.

845a8e94c9532d1494d41161ec5f5925d9413917.png

All Comments (9)

avatar

Have you tried from the Hangfire dashboard?

avatar

I just took a look at that for the first time. I did not know it existed. It looks like it only stores more recent runs though. Given that the jobs in question have been cancelling for a few days, they do not appear. Unless I am mistaken

avatar

They aren’t showing in any of the options under Jobs?

6b2a2016320d1470ea667eac0753f6f0b0f58a2b

6b2a2016320d1470ea667eac0753f6f0b0f58a2b.png

avatar



b78b689614c1d9293388c61632015e9565325fa0
This is what I see. I do not see anything for a Cancelling status, unless I am missing something

b78b689614c1d9293388c61632015e9565325fa0.png

avatar

I got the same issue.

Job doesnt want to cancel, new jobs fails, and the hangfire dashboard is not useful at all. It doesnt show any of my scheduled jobs etc.
restarting the service does nothing.

Trying to upgrade to 4.2.13 as last resort.

Edit, no difference on .13

avatar

I havent personally seen this issue, but I’ve currently started using PSU in anger for automations as well as apps. Have you guys logged an issue for this in github?

avatar

The issue is probably only visual. but 've created a issue for it.

Cancelled jobs stuck at cancelling · Issue #3164 · ironmansoftware/issues (github.com)

avatar

@AnonymousUser - I also saw this, I’ve commented in your issue but figured I’d also drop a note here. (I’m on 4.2.17)

avatar

Same issue here on 4.3.0