I have several scheduled tasks that run regularly, e.g. every minute, but every now and then the server starts running each task twice per minute instead, as though there is a duplicate configured somewhere.
In both the Lucee admin and using I only see one task, but in the request logs it’s definitely happening twice. A Lucee restart usually fixes it, for a while, at least. I only noticed it because I was getting locking errors.
Any ideas what could be causing this? Is it correct that task setup is handled outside of a specific web context?
(Don’t know if this is what you are experiencing, but) I recently encountered a similar problem where some of my scheduled tasks would run on schedule but then mysteriously run again a minute later.
It took me a while to realise it only happened on tasks which ran for over 60 seconds without anything being written to the response buffer (e.g. pages with very slow running queries).
The cause was nginx automatically retrying the request after a 60 second timeout.
Same problem on Windows server 2016 after a Lucee update. Current version: 5.2.6.60.
After an update all scheduled tasks run twice. My fix is to delete all tasks and enter them again, then restart Lucee.
Here’s a silly question: Do you have by any chance a copy of the site running in test/beta/dev environment? i.e. You might have only one scheduled task defined, but in more than one site?
Came here to say “me too”. I’m on Lucee 5.3.8.17, Linux RedHat 7. Suddenly the scheduled tasks each start running twice. I know because I have database logging in place on a task which runs every 5 minutes. Out of nowhere there will be duplicate entries. Also I schedule an email at certain intervals and I’ll start receiving two instead of one.
I don’t see any resolution to this thread but hoping to get some more information on this.