Re: How to determine if a scheduled task is already running?
On Wednesday 12 Nov 2003 16:53 pm, Tom Kitta wrote: > I definitely agree with Novak, it works for me without any problems. I am a > bit puzzled as to a better solution, a separate task management system > maybe? But how about an easy, quick and cheap solution that is better than > e-mail notification, any ideas here? Have a database table that is appended to each time the task runs. Have something reliable check the most recent entry, and do something if it's over a day old or whatever. Sooner or later you have to have a scheduler that you trust to run things though :-) We use Mon for this. -- Tom Chiverton Advanced ColdFusion Programmer Tel: +44(0)1749 834997 email: [EMAIL PROTECTED] BlueFinger Limited Underwood Business Park Wookey Hole Road, WELLS. BA5 1AF Tel: +44 (0)1749 834900 Fax: +44 (0)1749 834901 web: www.bluefinger.com Company Reg No: 4209395 Registered Office: 2 Temple Back East, Temple Quay, BRISTOL. BS1 6EG. *** This E-mail contains confidential information for the addressee only. If you are not the intended recipient, please notify us immediately. You should not use, disclose, distribute or copy this communication if received in error. No binding contract will result from this e-mail until such time as a written document is signed on behalf of the company. BlueFinger Limited cannot accept responsibility for the completeness or accuracy of this message as it has been transmitted over public networks.*** [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: How to determine if a scheduled task is already running?
I definitely agree with Novak, it works for me without any problems. I am a bit puzzled as to a better solution, a separate task management system maybe? But how about an easy, quick and cheap solution that is better than e-mail notification, any ideas here? TK -Original Message- From: cf-talk [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 12, 2003 11:35 AM To: CF-Talk Subject: RE: How to determine if a scheduled task is already running? Neither is falling asleep at the wheel when you're driving. :-) The only point I was trying to make is that when you didn't get your "daily" email you might start to wonder if something was wrong and check it out. Is it the best line of defense... certainly not. Is it better than having no checks and balances in place? Absolutely. -Novak -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 12, 2003 7:33 AM To: CF-Talk Subject: RE: How to determine if a scheduled task is already running? But notification of failures via inference is not necessarily a good thing... > Ummm... wouldn't you know it when you didn't get an email? :-) _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: How to determine if a scheduled task is already running?
Neither is falling asleep at the wheel when you're driving. :-) The only point I was trying to make is that when you didn't get your "daily" email you might start to wonder if something was wrong and check it out. Is it the best line of defense... certainly not. Is it better than having no checks and balances in place? Absolutely. -Novak -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 12, 2003 7:33 AM To: CF-Talk Subject: RE: How to determine if a scheduled task is already running? But notification of failures via inference is not necessarily a good thing... > Ummm... wouldn't you know it when you didn't get an email? :-) _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: How to determine if a scheduled task is already running?
Um... perhaps I am missing something here, but the scheduler.log file lists the name of the task and the result of running it. Couldn't you either manually check to see if it is running, or else write some script that checks to see when it was last run? M -Original Message- From: Pete Ruckelshaus [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 11, 2003 12:47 PM To: CF-Talk Subject: How to determine if a scheduled task is already running? Simple question (relatively). Is there a way to determine if a specific scheduled task is running? I'm using CFMX 6.1 on Win2K. Thanks Pete [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: How to determine if a scheduled task is already running?
But notification of failures via inference is not necessarily a good thing... > Ummm... wouldn't you know it when you didn't get an email? :-) [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: How to determine if a scheduled task is already running?
This could be a useful "feature addition" to CF to have some sort of reporting mechanism for this sort of thing. SMS messages for example when a site dies or serious error occurs. Peter Tilbrook Transitional Services - Enterprise eSolutions Centrelink (http://www.centrelink.gov.au) 2 Faulding Street Symonston ACT 2609 Tel: (02) 62115927 "cf-talk" <[EMAIL PROTECTED]To: CF-Talk <[EMAIL PROTECTED]> e.com> cc: Subject: RE: How to determine if a scheduled task is already running? 12/11/2003 08:46 Please respond to cf-talk | [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: How to determine if a scheduled task is already running?
Ummm... wouldn't you know it when you didn't get an email? :-) -Novak -Original Message- From: Tim Robins [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 11, 2003 11:03 AM To: CF-Talk Subject: Re:How to determine if a scheduled task is already running? Be careful relying on CFMAIL to send an email at the end of a completed task. If your Mail Server is down, you won't know it. _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: How to determine if a scheduled task is already running?
Go to Task Manager... If you see MSTask.exe running, then a schedule task is running. If your Schedule Task calls another program, then that program will be running also. For instance, to mirror/copy our servers, we use a file sync program. If I look under Task Manager and see MSTask running and filesync.exe running, then the copy process is working. Jacob At 09:47 AM 11/11/2003, you wrote: >Simple question (relatively). Is there a way to determine if a specific >scheduled task is running? I'm using CFMX 6.1 on Win2K. > >Thanks > >Pete > > >-- >[ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: How to determine if a scheduled task is already running?
For many tasks I just send myself an e-mail once the execution is over. If I don't get a message then I know that it crashed. I also put diagnostic information in that e-mail (like how many records got processed etc.) This is good for tasks that run once a day or less. For tasks that run often I have set up a once a day "checker" that makes sure the frequent task run. TK - Original Message - From: Pete Ruckelshaus To: CF-Talk Sent: Tuesday, November 11, 2003 12:47 PM Subject: How to determine if a scheduled task is already running? Simple question (relatively). Is there a way to determine if a specific scheduled task is running? I'm using CFMX 6.1 on Win2K. Thanks Pete [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: How to determine if a scheduled task is already running?
Not exactly sure what you're looking for but you can set the task up to write it's output to a file. For example c:\filename.log Then all you have to do is watch the file date and time of c:\filename.log to know if the task ran or not. -Novak -Original Message- From: Pete Ruckelshaus [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 11, 2003 9:47 AM To: CF-Talk Subject: How to determine if a scheduled task is already running? Simple question (relatively). Is there a way to determine if a specific scheduled task is running? I'm using CFMX 6.1 on Win2K. Thanks Pete _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: How to determine if a scheduled task is already running?
Why not set an Application variable when it starts and un-set it when it stops? The problem with this is if it crashes, then it'll think it's running, but it isn't -Original Message- From: Pete Ruckelshaus [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 11, 2003 12:47 PM To: CF-Talk Subject: How to determine if a scheduled task is already running? Simple question (relatively). Is there a way to determine if a specific scheduled task is running? I'm using CFMX 6.1 on Win2K. Thanks Pete _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]