Scheduleds tasks fired multiple time


We have scheduled tasks that are performed at night.
Last night, these tasks were performed FOUR TIMES. Each at their programmed time, but four times, at the same second!
There were no particular issues last night (like a server reboot).
The “Run Exclusive” option is checked for all.

This kind of problem has already happened.
If this mechanism is not reliable, maybe it is better to use Apache CRON?

Version: Lucee
Java: 11.0.7 (AdoptOpenJDK) 64bit
OS: Linux (4.15.0-202-generic) 64bit

How did you detect that it has run 4 times? Through the scheduler log, the webserver logfiles, or a programatic log within the executed cfm template? I’d cross check those first and also look if there are other web contexts firing a schedule.

We have a DB for each project, and a log table in each DB.
A row is inserted by cfm template at the beginning of the task.

About web contexts, only three for whole server.
And only one with scheduled tasks (ours sites/applications, one hundred, use Apache directive to group “AJP calls” in the same root directory, and then, share a lot of components)

Did you also check the access logs (http request logs) to verify if/how the templates are being requested by the scheduler?

Which log file are you talking about?

Nothing in access.log. But i found in error.log this line at the starting time for one task:

[Sat Mar 04 03:24:08.015251 2023] [proxy_ajp:error] [pid 24657] [client] AH00877: read zero bytes, expecting 314 bytes

I also found in other_vhost_access.log the four calls for one task: - - [04/Mar/2023:03:24:00 +0100] “GET /scripts/importFromZoho.cfm?RequestTimeout=600 HTTP/1.1” 200 5829 “-” “CFSCHEDULE” - - [04/Mar/2023:03:24:00 +0100] “GET /scripts/importFromZoho.cfm?RequestTimeout=600 HTTP/1.1” 200 5829 “-” “CFSCHEDULE” - - [04/Mar/2023:03:24:00 +0100] “GET /scripts/importFromZoho.cfm?RequestTimeout=600 HTTP/1.1” 200 5829 “-” “CFSCHEDULE” - - [04/Mar/2023:03:24:00 +0100] “GET /scripts/importFromZoho.cfm?RequestTimeout=600 HTTP/1.1” 200 5829 “-” “CFSCHEDULE”

This is the second day the Lucee server “stutters”. I can try the heavy solution, with a restart!

Yesterday, the Lucee server was restarted.
But the problem remains!

At least, i wrapped all my scripts with a cflock “exclusive” to prevent the code to be run more than one time (a lot of DB operations).