Copy link to clipboard
Copied
I'm working on setting up the scheduled tasks in coldfusion 2018. I have already configured it in the cluster mode and its working.
Our concern is that we have to create ITaskEventHandlers scripts for each app on the coldfusion document root source folder of the file system.
For example document root is /disk1/cfdata/source and the folder called scheduler has to reside here, for example /disk1/cfdata/source/scheduler and apps paths are /disk1/cfdata/source/webapps/app1, /disk1/cfdata/source/webapps/app2
I think that ITaskEventHandlers scripts should be in the app folder along side the other source code and not outside in the centralized location. Can this be changed so ITaskEventHandlers scripts are in the source code?
Copy link to clipboard
Copied
I am supposing that, by ITaskEventHandlers scripts, you mean ITaskEventHandler CFCs or CFMs in which such CFCs are invoked. In which case, I don't see any problem.
ITaskEventHandler is designed for extensibility and flexibility. You can tailor each ITaskEventHandler CFC to specific needs, then place it at the location you consider best. So long as each CFC extends CFIDE.scheduler.ITaskEventHandler. That is the key enabler of the flexibility.