05-23-2011 7:01 AM
Dear Experts,
I have a background job which runs on daily basis and does some FTP operations.
Now whenever it fails i need to reschedule that background job again automatically.
How should i do this rescheduling task automatically?
Can anyone please help me out with this?
Thanks,
Praveen
05-23-2011 8:42 AM
A periodic job is being automatically rescheduled anyway for the next execution, irrespective of the outcome. Do you want a different behaviour when the job fails? Immediate start? Isn't there an error situation that should be corrected before the next execution?
Please provide more details.
Thomas
05-23-2011 10:56 AM
Hi Thomas,
My background program does some FTP operations on a network drive.
Sometimes, that network drive is down and the program fails to connect there.,that network down time is not fixed.
So i want the background job to be run again automatically when ever it fails.
I dont have to make any changes in my report, i just need to re run that program again after some time.
Can you please suggest me how to handle this issue?
Thanks,
Praveen
05-23-2011 11:07 AM
I can only think of touching the code and have the report schedule itself for one-time execution X minutes later, this would be only a few extra lines.
Thomas
05-23-2011 12:40 PM
Dear Thomas,
Can you please guide me with how to write that code to reschedule the job?
Thanks,
Praveen
05-23-2011 1:25 PM
As a hint, you can call GET_JOB_RUNTIME_INFO and BP_JOB_READ to get the details of the current run and feed that into BP_JOB_CREATE, adjusting the starting time as necessary.
Please search for available information as well.
Thomas
07-04-2011 7:18 AM