Skip navigation
tomarse
Currently Being Moderated

cfschedule on multi instance server

Oct 7, 2013 3:34 AM

Tags: #coldfusion #scheduled #scheduled_tasks

Hi All

 

Hope someone can help me on this. We run a multi instance CF server with 3 "slave" instances, which handle the site requests and the CFusion instance that handles the scheduled tasks.

 

The application I'm writing has a few scheduled tasks that need setting up each time it gets installed and it is installed multiple times for a variety of clients. So far, this has been done either manually setting them up individually on the CFusiion instance or I created an admin menu extension that fires them off (Knowing the <cfschedule> is being run on CFusion, thus installing them to that instance).

 

My question however is; it would much more efficient if the application could check for the existence of the scheduled task and if it's not there, install them. The problem though is as the request would be coming from initial install, thus a web request, it would be coming from one of the "Slave" instances and install the scheduled tasks to them = bad. Is there any way to direct a specific request or point <cfschedule> to install on specific instance of ColdFusion?

 

Checking for the existance on the CFusion instance is easy, I can read:

 

C:/JRun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/n eo-cron.xml

 

But then directing the request seems to be impossible in this way.

 

I am running CF9.0.1 on a Windows 2008 Server box with IIS7.5

 

Hopefully somone may be able to help

 

Thanks in advance

 

Tom

 
Replies

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points