If the scheduled job is calling a script on a server, I would have the script that it calls, delete the scheduled task when it is done, or it errors for any reason.
-Randy ----- Original Message ----- From: "James Holmes" <[EMAIL PROTECTED]> To: "CF-Talk" <[email protected]> Sent: Tuesday, March 13, 2007 8:45 AM Subject: Re: Using the API to schedule tasks in a CF cluster > Can you have the scheduled job delete itself? > > On 3/13/07, Peterson, Chris <[EMAIL PROTECTED]> wrote: >> I have a mass emailer application in CF that schedules sendouts using >> the CF scheduler and the Admin Api to add scheduled tasks. This >> application is running on a round-robin cluster between 2 instances, >> which is paired with an identical server behind a cisco content switch >> for load balancing and fault tolerance. >> >> My question is this: The mass emailer adds a scheduled task to >> whichever instance the request happens to get directed too, on whichever >> server is least busy at the time. This application also has code to >> remove a scheduled task. Now, that removal task is never guaranteed to >> hit the same server / instance that the task was scheduled on, so most >> often it fails to remove the task. >> >> Should I: >> a) change this particular site to use one single instance of CF and >> have the load balancer direct all traffic to a single server >> b) write some kind of code to have it check each instance when deleting >> to verify it finds and deletes the correct scheduled job >> c) do something I don't know about? =) > -- > mxAjax / CFAjax docs and other useful articles: > http://www.bifrost.com.au/blog/ > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Create robust enterprise, web RIAs. Upgrade & integrate Adobe Coldfusion MX7 with Flex 2 http://www.adobe.com/products/coldfusion/flex2/ Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:272506 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

