SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
Retry Count

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
Retry Count
Author Message
The Sauce



Joined: 08 Nov 2001
Posts: 1

Post Retry Count Reply with quote

We are trying to schedule a daily FTP download. The job works fine if the file exists, but we are trying to prepare for the scenario where it might not yet be posted to the remote server. Most importantly, we are looking to have the job retry for a specific amount of time, then fail if the file can not be located.

When attempting to FTPGet a non-existant file, the job returns the appropriate "file not found" error and schedules a retry (1-of-3). After the allotted 5 minute waiting period, it again fails (as it is supposed to on this test), and it once again schedules a retry (1-of-3). Obviously, the retry/fail counter never increases, so the job never stops retrying (unless it is able to find the file).

Has anyone else had this problem? And if so, what is the remedy?

Thanks!

Thu Nov 08, 2001 12:02 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7948

Post Re: Retry Count Reply with quote

I have seen "retry" problems in v3.0.something (I think it was 3.0.1 or 3.0.2) then it was fixed in a later version. Please consider upgrading to the most recent version 3.1.1. I guess new v3.1.2 will be available tomorrow. Check it out.

In a mean time, there is a simple workaround for this particular case:
In the job script you use FTPFileExists to check for a file before downloading and then use Wait to wait for a little while if it is not.

Example:
Dim found, boolean
FTPFileExists *myserver*, *user*, *pass*, *file*, found
IfThen found, GET_IT

// wait 30 seconds
Wait 30
FTPFileExists *myserver*, *user*, *pass*, *file*, found
IfThen found, GET_IT

// wait another 30 seconds
Wait 30
FTPFileExists *myserver*, *user*, *pass*, *file*, found
IfThen found, GET_IT

// file not found, send email to ...
SendMail .... "Error ...."
Exit

GET_IT:
FTPFileGet *myserver*, *user*, *pass*, *file*, *local_file*

: We are trying to schedule a daily FTP download. The job works fine if the
: file exists, but we are trying to prepare for the scenario where it might
: not yet be posted to the remote server. Most importantly, we are looking
: to have the job retry for a specific amount of time, then fail if the file
: can not be located.

: When attempting to FTPGet a non-existant file, the job returns the
: appropriate "file not found" error and schedules a retry
: (1-of-3). After the allotted 5 minute waiting period, it again fails (as
: it is supposed to on this test), and it once again schedules a retry
: (1-of-3). Obviously, the retry/fail counter never increases, so the job
: never stops retrying (unless it is able to find the file).

: Has anyone else had this problem? And if so, what is the remedy?

: Thanks!

Thu Nov 08, 2001 12:27 pm View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.