Scheduled Tasks stop working randomly

Has anyone run into a situation where scheduled tasks run for a random period of time and then just stop.

I have 2 tasks scheduled; 1 every 5 minutes and 1 every hour. They will run for a day to a week or longer and then just stop.

When stopped, I can run both from the browser with no error. I can also run them using Execute in the admin panel. No errors. No log entries (lucee at least) Watching CPU usage in ProxMox, I can see that when it’s running, it uses < 0.5% CPU and a steady 1GB of ram.

The one weird thing that I see (but don’t know if it matters) is that my task is set with a start time of 00:01:00 but it seems that every time it fails, the start time in the admin setup gets set to 23:08:31 (for the 5 minute task) or 23:27:01 for the hour task). I believe this is consistent behaviour.

If I reboot and set the start time back to 00:01:00, it seems to run correctly again. I don’t know if that’s a cause, side effect or irrelevant.

Any thoughts on where to look to trouble shoot this? Everything looks absolutely normal.

I guess I could just run wget/curl on the files and use cron instead?

Headless Debian 12
Java 21.0.7 (Eclipse Adoptium) 64bit
Apache Tomcat/11.0.6
Lucee 6.2.1.122

All running in a ProxMox VM with 12GB ram and lots of free disk space.

Try bumping up the scheduler.log log level to info?

Oh good tip. I’ll monitor. Thanks. I’ve also turned on info for http as these both use cfhttp calls.

There is an error showing up in scheduler which I assume has happened before but haven’t noticed it.

“ERROR”,“Thread-3”,“07/10/2025”,“23:27:08”,“schedule task:AQMonitor”,“Task is not valid”

Again with that weirdly specific 23:27:xx time (this was the 1 hour task) However this task is currently still running correctly.

What would cause a Task Not Valid error but not cause an exception to be thrown? The exception logs are empty.

Being open source you can easily answer that question by searching that in the lucee repo on GitHub or checking out a local copy and doing the same?

This could possibly related

https://luceeserver.atlassian.net/browse/LDEV-5650