Author |
Message |
Michael Tuszynski
Joined: 07 May 2004 Posts: 30
|
|
restarting jobs |
|
I have a job scheduled within the job wizard to restart with a wait time of 300 seconds, 6 retries. Although I get the message 'Will restart job in 300seconds, attempt 1 of 6", the job does not seems to restart itself (there is no logging to indicate the job has restarted. Any suggestions (I am using 3.4.19)
|
|
Mon Aug 02, 2004 8:42 am |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7969
|
|
Re: restarting jobs |
|
If you run 24x7 as a standalone server, open up the GUI screen and click View/Details menu; navigate to the folder contaning this job. What does it say in the Next Start Time column? : I have a job scheduled within the job wizard to restart with a wait time of : 300 seconds, : 6 retries. Although I get the message 'Will restart job in 300seconds, : attempt 1 of 6", : the job does not seems to restart itself (there is no logging to indicate the : job has restarted. : Any suggestions (I am using 3.4.19)
|
|
Mon Aug 02, 2004 9:21 am |
|
 |
Michael Tuszynski
Joined: 07 May 2004 Posts: 30
|
|
Re: restarting jobs |
|
The next business day at the original start time.(rather than same day 5 mins later). : If you run 24x7 as a standalone server, open up the GUI screen and click : View/Details menu; navigate to the folder contaning this job. What does it : say in the Next Start Time column?
|
|
Mon Aug 02, 2004 10:59 am |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7969
|
|
Re: restarting jobs |
|
What do you mean? Did you copy & paste the right message? : The next business day at the original start time.(rather than same day 5 mins : later).
|
|
Mon Aug 02, 2004 1:28 pm |
|
 |
Michael Tuszynski
Joined: 07 May 2004 Posts: 30
|
|
Re: restarting jobs |
|
: What do you mean? Did you copy & paste the right message? Not sure what you mean by 'copy & paste'. Here is the scenario: New Job #1 downloads a file from an FTP site daily to a specific directory. New Job #1 is set to retry on error 6 times with a wait of 300 in between tries. New Job #1 is scheduled to run at 8:30am M-F. 8:30am on Monday elapses, and the job fails. The job log in the 24x7 console states: "Attempt 1 of 6 to run this job failed, will retry in 300 seconds" In the view/details pane, the next run time is set to 8:35am Monday. 8:35 elapses, the job fails again but no new status message is in the log, and the next scheduled run time is then set Tuesday at 8:30. The job did not complete successfully (verified by manually checking the file), and did not run again. I am expecting that every 5 mins until 9am in this scenario I see message in the error log that state: "Attempt 2 of 6 to run this job failed, will retry in 300 seconds" "Attempt 3 of 6 to run this job failed, will retry in 300 seconds" "Attempt 4 of 6 to run this job failed, will retry in 300 seconds" "Attempt 5 of 6 to run this job failed, will retry in 300 seconds" "Attempt 6 of 6 to run this job failed, will retry in 300 seconds" "Job failed." or "Attempt 2 of 6 to run this job failed, will retry in 300 seconds" "Attempt 3 of 6 to run this job failed, will retry in 300 seconds" "Job Success" when the file becomes available. Hope this clarifies things.
|
|
Mon Aug 02, 2004 1:43 pm |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7969
|
|
Re: restarting jobs |
|
Please check 2 things: 1. The job is not hanging in the job queue or not being blocked by other run away or hanged job. 2. In the job properties if you have "skip late job" option checked the late interval is set to at least 31 minutes (6*5 + 1 extra minute) : Not sure what you mean by 'copy & paste'. : Here is the scenario: New Job #1 downloads a file from an FTP site daily to a : specific directory. : New Job #1 is set to retry on error 6 times with a wait of 300 in between : tries. : New Job #1 is scheduled to run at 8:30am M-F. : 8:30am on Monday elapses, and the job fails. The job log in the 24x7 console : states: "Attempt 1 of 6 to run this job failed, will retry in 300 : seconds" : In the view/details pane, the next run time is set to 8:35am Monday. : 8:35 elapses, the job fails again but no new status message is in the log, : and the : next scheduled run time is then set Tuesday at 8:30. The job did not complete : successfully (verified by manually checking the file), and did not run again. : I am expecting that every 5 mins until 9am in this scenario I see message in : the error log that state: "Attempt 2 of 6 to run this job failed, : will retry in 300 seconds" : "Attempt 3 of 6 to run this job failed, will retry in 300 seconds" : "Attempt 4 of 6 to run this job failed, will retry in 300 seconds" : "Attempt 5 of 6 to run this job failed, will retry in 300 seconds" : "Attempt 6 of 6 to run this job failed, will retry in 300 seconds" : "Job failed." : or : "Attempt 2 of 6 to run this job failed, will retry in 300 seconds" : "Attempt 3 of 6 to run this job failed, will retry in 300 seconds" : "Job Success" : when the file becomes available. : Hope this clarifies things.
|
|
Mon Aug 02, 2004 4:34 pm |
|
 |
Michael Tuszynski
Joined: 07 May 2004 Posts: 30
|
|
Re: restarting jobs |
|
1. Each job is in its own queue, so that rules out hung jobs. 2. I do not have "skip late job" option checked in any of my scripts. : Please check 2 things: 1. The job is not hanging in the job queue or not : being blocked by other run away or hanged job. : 2. In the job properties if you have "skip late job" option checked : the late interval is set to at least 31 minutes (6*5 + 1 extra minute)
|
|
Tue Aug 03, 2004 6:48 am |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7969
|
|
Re: restarting jobs |
|
Please check this job is not set to run detached : 1. Each job is in its own queue, so that rules out hung jobs. : 2. I do not have "skip late job" option checked in any of my : scripts.
|
|
Tue Aug 03, 2004 8:42 am |
|
 |
Michael Tuszynski
Joined: 07 May 2004 Posts: 30
|
|
Re: restarting jobs |
|
Ah, my jobs run detached for the most part. I will uncheck this item. Anything else? : Please check this job is not set to run detached
|
|
Tue Aug 03, 2004 8:48 am |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7969
|
|
Re: restarting jobs |
|
In this version of 24x7 detached and retry options cannot be used together. Support for retries in detached jobs will be added in following versions. : Ah, my jobs run detached for the most part. I will uncheck this item. : Anything else?
|
|
Tue Aug 03, 2004 9:39 am |
|
 |
Michael Tuszynski
Joined: 07 May 2004 Posts: 30
|
|
Re: restarting jobs |
|
Looks like without detached checked, the job is restarting properly, however, the message displayed in the log view does not iterator the retry counter. On the 2nd attemp, the log message states "Attempt 1 of 6" instead of "2 of 6". Does this message, displayed in the error log, available via a macro paramter (@V) variable? : In this version of 24x7 detached and retry options cannot be used together. : Support for retries in detached jobs will be added in following versions.
|
|
Tue Aug 03, 2004 11:19 am |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7969
|
|
Re: restarting jobs |
|
Please click View/Refresh menu or hit the little "refrefh" button above log tab to refresh the job log view. The message is not currently available via macro paramters. : Looks like without detached checked, the job is restarting properly, however, : the : message displayed in the log view does not iterator the retry counter. On the : 2nd attemp, : the log message states "Attempt 1 of 6" instead of "2 of : 6". : Does this message, displayed in the error log, available via a macro paramter : (@V) variable?
|
|
Tue Aug 03, 2004 12:25 pm |
|
 |
Michael Tuszynski
Joined: 07 May 2004 Posts: 30
|
|
Re: restarting jobs |
|
Doesnt help. I am getting multiple entries with: "Attempt 1 of 6, will retry in 300 seconds" Its not incrementing the attempt counter. : Please click View/Refresh menu or hit the little "refrefh" button : above log tab to refresh the job log view. : The message is not currently available via macro paramters.
|
|
Tue Aug 03, 2004 12:50 pm |
|
 |
|