SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
How to avoid the error message popup?

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
How to avoid the error message popup?
Author Message
Ilya Badaev



Joined: 22 Aug 1999
Posts: 4

Post How to avoid the error message popup? Reply with quote

I try to implement fail-safe for individual jobs.
For each program I need to run I create a job that creates a dynamic job that actually runs the executable. I wanted to implement the following logics: if JobRun fails for some reason - then change the AGENT or the HOST property of the newly created Job and rerun it on another agent.
The problem is that any time I get an error (executable not found or anything else) I get a nasty MessageBox with the error and besides JobRun returns 0, which means that the job was run successfully.
Is there any way to not show the Message Box and to have JobRun return the correct status of the operation?

Thu Sep 09, 1999 9:13 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7838

Post Re: How to avoid the error message popup? Reply with quote

To avoid error-message, consider setting job properties to "ignore errors". Note that the modal MessageBox appears only when you run a job manually by clicking on the Run icon. In unattended mode the 24x7 scheduler optionally displays non-modal message which disappears after certain time. You can configure that in the system options.

Also note that JobRun doesn't return a value. It triggers the job just like if it ran by itself because of the job's schedule conditions were satisfied. You can set the "error" notification action to "create semaphore file" for the job being called. The calling job can check for that file existence after executing JobRun. Another trick is to use the FileTransfer statement to test for availability of the desired 24x7 Agent.

: I try to implement fail-safe for individual jobs.
: For each program I need to run I create a job that creates a dynamic job that
: actually runs the executable. I wanted to implement the following logics:
: if JobRun fails for some reason - then change the AGENT or the HOST
: property of the newly created Job and rerun it on another agent.
: The problem is that any time I get an error (executable not found or anything
: else) I get a nasty MessageBox with the error and besides JobRun returns
: 0, which means that the job was run successfully.
: Is there any way to not show the Message Box and to have JobRun return the
: correct status of the operation?

Thu Sep 09, 1999 11:03 am View user's profile Send private message
Ilya Badaev



Joined: 22 Aug 1999
Posts: 4

Post Re: How to avoid the error message popup? Reply with quote

: To avoid error-message, consider setting job properties to "ignore
: errors". Note that the modal MessageBox appears only when you run a
: job manually by clicking on the Run icon. In unattended mode the 24x7
: scheduler optionally displays non-modal message which disappears after
: certain time. You can configure that in the system options.

: Also note that JobRun doesn't return a value. It triggers the job just like
: if it ran by itself because of the job's schedule conditions were
: satisfied. You can set the "error" notification action to
: "create semaphore file" for the job being called. The calling

The help, I think erroneously, says that the name of the semaphore file property is MSG_FILE, while this is the property that says whether to create a semaphore file or not and can get only values "Y" or "N".
What is the right name of the property that sets the semaphore file name?

: job can check for that file existence after executing JobRun. Another
: trick is to use the FileTransfer statement to test for availability of the
: desired 24x7 Agent.

Thu Sep 09, 1999 11:12 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7838

Post Re: How to avoid the error message popup? Reply with quote

I will get to you as soon as I find out the correct property name.

: The help, I think erroneously, says that the name of the semaphore file
: property is MSG_FILE, while this is the property that says whether to
: create a semaphore file or not and can get only values "Y" or
: "N".
: What is the right name of the property that sets the semaphore file name?

Thu Sep 09, 1999 1:00 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.