W11-25H2 V2
I was working a a task that a customer wanted run
from the Task Scheduler. Every time I tested
is said "running". It should have exited almost
instantly.
I tore my hair out trying to figure out why is never
exited. Turns out, all I had to do was press "F5"
to refresh the Task Scheduler screen. My code way
fine!
I was working a a task that a customer wanted run
from the Task Scheduler. Every time I tested
is said "running". It should have exited almost
instantly.
T wrote:
I was working a a task that a customer wanted run
from the Task Scheduler. Every time I tested
is said "running". It should have exited almost
instantly.
Task Manager doesn't auto-refresh the status, you have to use F5.
Andy Burns wrote:It may do it on a longish interval, but not reliably ...
Task Manager doesn't auto-refresh the status, you have to use F5.
It sure seemed to on many of the other things I was testing.
T wrote:
Andy Burns wrote:It may do it on a longish interval, but not reliably ...
Task Manager doesn't auto-refresh the status, you have to use F5.
It sure seemed to on many of the other things I was testing.
On Thu, 30 Apr 2026 12:26:03 +0100, Andy Burns wrote:
T wrote:
Andy Burns wrote:It may do it on a longish interval, but not reliably ...
Task Manager doesn't auto-refresh the status, you have to use F5.
It sure seemed to on many of the other things I was testing.
The task may perform on data that the customer kept adding, which of course, lengthen the time for the task to complete each time more data is added.
Did the custom don't think that, more data require more time to process?
Or does the customer not aware that, the data grows bigger over time?
Or maybe the storage performance has decreased due to its age?
On 4/30/26 05:24, JJ wrote:
On Thu, 30 Apr 2026 12:26:03 +0100, Andy Burns wrote:
T wrote:
Andy Burns wrote:It may do it on a longish interval, but not reliably ...
Task Manager doesn't auto-refresh the status, you have to use F5.
It sure seemed to on many of the other things I was testing.
The task may perform on data that the customer kept adding, which of course, >> lengthen the time for the task to complete each time more data is added.
Did the custom don't think that, more data require more time to process?
Or does the customer not aware that, the data grows bigger over time?
Or maybe the storage performance has decreased due to its age?
ChatGPT had me chasing after whether the task was still running
or no. It wasn't. Then I thought about refreshing the page
and came up with "f5" when I could not find "refresh" in any
of the pull downs.
This one need a refresh:
<Exec>
<Command>cmd.exe</Command>
<Arguments>/c taskkill /IM QBW.EXE /F >nul 2>&1 & timeout /t 2 >nul & tasklist /FI "IMAGENAME eq QBW.EXE" | find /I "QBW.EXE" >nul & exit /b %errorlevel%</Arguments>
</Exec>
This one did not
<Exec>
<Command>C:\Rakudo\bin\raku.exe</Command>
<Arguments>C:\NtUtil\Alpen.Backup.raku --rotates 20
--UNC_BackupPath [BACKUP]\MyDocsBackup\backup1</Arguments>
<WorkingDirectory>C:\NtUtil</WorkingDirectory>
</Exec>
I am no stranger to the Task Scheduler, but this is
the first time I have seen this inconsistent behavior.
So I thought I'd post the f5 tip in case anyone else
started pulling their hair out too.
| Sysop: | Scott Duensing |
|---|---|
| Location: | Freeburg, IL, USA, Earth |
| Users: | 5 |
| Nodes: | 16 (0 / 16) |
| Uptime: | 494354:34:54 |
| Calls: | 5 |
| Messages: | 20,594 |