Here's how it's supposed to work:
Task Scheduling:
When cfexec.exe is started up, and again at intervals of [Scheduler Refresh Interval]
minutes, cfexec updates a list of scheduled tasks which is kept in memory.
--Only tasks with a Start Date less than or equal to the Current Date are put
into the in-memory list. This explains why some "Weekly" scheduled tasks do not run
the first week when they are scheduled shortly after midnight.
--The next-run-time for each task is calculated when it is placed into the
in-memory list.
--This in-memory list is scanned every 60 seconds to check for tasks which
should be run.
--During the scan performed every 60 seconds, each task in the in-memory list
is checked to see if its next-run-time is Greater Than the last scan time, and Less
Than or Equal To the current scan time. If so:
The next-run-time is re-calculated
for DAILY tasks - only Time is used in the calculations. For
other types, DateTime is used.
for INTERVAL (Daily every ....minutes ) - if the
next-run-time is Greater Than the End Time, the Start Time in the next day is set as
the next-run-time.
A new thread is created to execute the task (so cfexec doesn't have to
wait for the task to complete)
Deb
-----Original Message-----
From: S. Isaac Dealey [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 01, 2002 5:22 PM
To: CF-Talk
Subject: Re: Schedule Task
> Guys I might be dumb here, but I have a routine that it set to run from
> 8am
> to 10pm every 60 minutes.
> My file deletes files on the server recreates and then populates with info
> from database. After which the information is deleted from the database
> and
> another server picks the file up and then deletes the info in it.
> The problem is that at 9pm the scheduler stops running and does not output
> the 10pm file. Should my scheduler be from 8am to 10pm or 8am to 11pm in
> order for my 10pm file to be run?
I would imagine it'd work the way you want it to if you just moved the end
time back 15 minutes... so 8am to 10:15pm the 10pm file will get written...
I have some vague recollection of somebody mentioning the scheduled task not
firing if it occurs right at the end time...
Isaac Dealey
Certified Advanced ColdFusion Developer
www.turnkey.to
954-776-0046
______________________________________________________________________
This list and all House of Fusion resources hosted by CFHosting.com. The place for
dependable ColdFusion Hosting.
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists