How can I run a ColdFusion scheduled task at an interval <60 seconds? -
I have a CFC method that I would like to run at 30 seconds intervals. However, the problem is that ColdFusion will not let me do the work that runs at intervals of 60 seconds or less. Does anyone have any idea about how I can accomplish this?
To answer this question, "Have your script run for more than 30 seconds," or to answer any other question, all have already taken into consideration and this concern is not.
I am running ColdFusion 8.0.1 (w / hotfix 4) on Windows Server 2003 (IIS6). As a side note, I am using Java 1.6u21 as my JVM for coldfusion.
Thanks in advance.
The only way to do this is with some manual edits of the file for your scheduled tasks.
Such:
- Make a designated work with a 5 minute interval.
- Open the file named neo-cron.xml in your CF install
lib
directory. You may want to first back up . - Search for the name of your assigned work This is a large part of XML, so you want to format it and find it in XML Editor.
- After the name of the job you should see something like this:
. This is the number of seconds between work runs. This is in second seconds, so you can manually adjust it in 30 and then save the file and close it.
It will still show in CF Admin as 1 minute but it should run every 30 seconds - if you want, add logging to prove it!
It is not that if you edit any other scheduled work while using CF Admin, your manual changes will be unaffected, but if you edit the actual work manually adjust it will Overwrites the changes
Hope that helps!
Comments
Post a Comment