SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
running linked jobs in COM

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
running linked jobs in COM
Author Message
Duncan



Joined: 22 Jan 2004
Posts: 13

Post running linked jobs in COM Reply with quote

This links to a previous thread I started on here about notification actions and events in COM

http://www.softtreetech.com/cgi_bin/config.cgi?read=4699

which you helped me to sort out, and I've now come up against something else.
I have the 2 jobs set up and Job 1 will run Job 2 if Job 1 is scheduled to start.
However if I start it using the RunJob command in COM only job 1 will run.
Can you help? Am I doing something wrong?

Thanks
Duncan

Mon Mar 01, 2004 2:22 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7969

Post Re: running linked jobs in COM Reply with quote

Where are you calling RunNow? In the job script (VBScript) or in the notification action(JALScript)?

: This links to a previous thread I started on here about notification actions
: and events in COM

: http://www.softtreetech.com/cgi_bin/config.cgi?read=4699

: which you helped me to sort out, and I've now come up against something else.
: I have the 2 jobs set up and Job 1 will run Job 2 if Job 1 is scheduled to
: start.
: However if I start it using the RunJob command in COM only job 1 will run.
: Can you help? Am I doing something wrong?

: Thanks
: Duncan

Tue Mar 02, 2004 12:35 am View user's profile Send private message
Duncan



Joined: 22 Jan 2004
Posts: 13

Post Re: running linked jobs in COM Reply with quote

RunNow is called from our interface (which contains a list of scheduled jobs)
There is a tool bar button that enables the user to run the selected job (much the same as in your GUI)

: Where are you calling RunNow? In the job script (VBScript) or in the
: notification action(JALScript)?

Wed Mar 10, 2004 7:52 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7969

Post Re: running linked jobs in COM Reply with quote

I think I now understand what you are doing. There is no RunNow API function. You probably mean the RunJob function, right?

The RunJob function doesn't trigger a job. Instead it grabs the job definition (without triggers and notifications) and runs it as if it was a dynamic job.
The solution to linked job run in this case is to use RunShellCommand instead of RunJob as below

RetCode = com_obj.RunShellCommand("24x7 /JOB id_of_job_to_run", "", True, 0)

: RunNow is called from our interface (which contains a list of scheduled jobs)
: There is a tool bar button that enables the user to run the selected job
: (much the same as in your GUI)

Thu Mar 11, 2004 1:29 am 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.