问题
After upgrading and migrating from ColdFusion 9 to 10, all of our scheduled tasks are gone. In the logs, there are "Advance Scheduling support is not available in this edition of ColdFusion server" errors. I know this is a known issue that was fixed in the first update. At this point, ColdFusion 10 is on update 10 (which docs says is cumulative so should include update 1), and documentation says to first install the mandatory update then update 10. We did this before migrating, however our scheduled tasks still do not appear in the CF admin console. In other threads on the subject, I've read that we may need to add the "html" extension to the new neo-cron.xml (we have tasks that create static output), but that doesn't seem to be directly correlated to the issue of not seeing our scheduled tasks at all. Any ideas? We're running CF on Windows Server 2003 (SP2)/IIS 6.
Even if CF doesn't recognize our tasks, is there a way to take our neo-cron.xml from CF 9 and import it into 10 to recreate our tasks?
回答1:
I believe in CF10, tasks require an onComplete
.
So after the tag
<struct type='coldfusion.scheduling.ScheduleTagData'>
add the line below for each task
<var name='oncomplete'><string></string></var>
来源:https://stackoverflow.com/questions/17155482/how-to-fix-scheduled-tasks-after-upgrade-from-coldfusion-9-to-10