macromedia.coldfusion.server_administration
[Top] [All Lists]

Re: Scheduled task KEEPS running after removal

Subject: Re: Scheduled task KEEPS running after removal
From: GArlington
Date: Tue, 11 Mar 2008 03:46:58 -0700 PDT
Newsgroups: macromedia.coldfusion.server_administration

On Mar 10, 3:37 pm, "RichardG" <webforumsu...@xxxxxxxxxxxxxx> wrote:
> On a  version 7.02 server I have a process where:
>
>  1. I run page1 which populates a table with X records
>  2. page1 also creates a scheduled task to run page2 to process those X 
> records
> every Y minutes
>  3. page1 cfincludes page2 at the end to process the 1st batch of X records
>
>  page2 deletes X records each time it runs (and inserts a record into a
> separate tracking table which I'm using only to debug & see exactly what's
> going on.)
>
>  Then, as page2 runs as  the scheduled task, when it has zero records left to
> process it deletes the scheduled task.  Monitoring this process in CF Admin,
> the task is indeed getting created & deleted properly and everything seems to
> have worked fine.
>
>  HOWEVER, as I monitor the tracking table, the deleted scheduled task, page2 
> is
> STILL running every Y minutes!!
>
>  Anybody know what's giong on?
>
>  code which creates task (var urrl has ben set with path & file to run,
> interval of 70 is just for testing):
>
>              <cfschedule action="update"
>                  task="batch_email" operation="httprequest"
>                  startdate="01/01/08" starttime="12:00 AM"
>                  url="#urrl#"
>                  interval = "70">
>
>  code which deletes task:
>
>        <cfschedule action="delete"
>          task="batch_email"
>          operation="httprequest" >

Did you try
<cfschedule action="delete" task="batch_email" />
?

<Prev in Thread] Current Thread [Next in Thread>