(see thread on "Re: "bootstrapping" or "onServerStart")

So, Brett, 

if I set up a schedual task to last year, I can use this "run once feature" 
(sic) to call the application (and load up my singletons) every time the server 
starts/restarts?

this could be the neatest way yet to bootstrap this app...

(if I do this, I hope this behavour doesn't get changed in the future)

thanx
barry.b


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Brett
Payne-Rhodes
Sent: Friday, 3 June 2005 11:26 AM
To: CFAussie Mailing List
Subject: [cfaussie] Scheduled tasks


Hi,

I just found this little gem in the help text for <cfschedule>


Caution:   When ColdFusion starts, it runs all past jobs that are 
scheduled to run once. For example, if you schedule a job to run on 10 
AM on Januray 1, 2003, and you restart ColdFusion on Jan 10, it runs the 
January 1 job, even if it already ran. (ColdFusion does this because it 
attempts to ensure that all scheduled tasks get run, and it does not 
have information on whether prior tasks have been run.)


This gave me a bit of a scare as I've got (had) a few scheduled tasks 
set to 'run once' in 2001 as a convenient way of putting tasks on hold. 
The workaround is simple, after a moment of "what the F$&?!!!", simply 
future date the task so far in the future that it will never run without 
manual activation.

Brett
B)

-- 
Brett Payne-Rhodes
Eaglehawk Computing
t: +61 (0)8 9371-0471
f: +61 (0)8 9371-0470
m: +61 (0)414 371 047
e: [EMAIL PROTECTED]
w: www.ehc.net.au

---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/

---
You are currently subscribed to cfaussie as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/

Reply via email to