Scheduler.xml is not executing in Lucee 6

I have converted the APP from Lucee 5 to Lucee 6 and I can not longer see a scheduled task. Were there any changes that need to be done to scheduler.xml to make a smooth transition

The current file looks like this


<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>

Don’t forget to tell us about your stack!

OS: Linux
Java Version: 17
Tomcat Version: 11
Lucee Version: 6.2.2.91

there’s no xml config/etc in 6, it’s in the .CFconfig.json now

How would I convert the existing scheduler.xml when its source is coming from the {lucee-web}. Should I do it manually? I juts wanted to isolated for security purposes

eh? what is your threat model here?

On upgrade from 5, Lucee should have automatically imported them into .CFconfig.json look for schedule in that file?

It did not. I have a different setup. The server side is stored in one side and web parts is stored in the different folder that probably why it did not pick up.

Maybe can use configTranslate() (Configuration - CFConfig.json :: Lucee Documentation) ? Or CommandBox / cfconfig (CFConfig export from Lucee 5 and import into Lucee 6 - CommandBox CLI - Ortus Solutions Community)?

1 Like

dunno if that supports the scheduler.xml tho

The scheduled tasks are currently resides within .CFconfig.json under webapps/root/web-inf/lucee

Ah, good point. Only discovered configTranslate today and haven’t looked too deeply into it. However, I’m pretty sure CFConfig exports / imports the scheduled tasks. I think I used it a while ago when I encountered the same issue. I still had to make some manual edits due to some array vs struct incompatibility which may have been resolved since then.

Lucee 6.2.3 handles merging in cfconfig much better after some improvements

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