SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
Paralllel/Asynchronous execution

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
Paralllel/Asynchronous execution
Author Message
George Coles



Joined: 19 Jan 2005
Posts: 3

Post Paralllel/Asynchronous execution Reply with quote

Hi,

My application needs to run "groups" of jobs in sequence, but the all the jobs within
one group need to run in parallel. How do I approach this in JAL?

Thanks
George Coles

Wed Jan 19, 2005 6:59 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7970

Post Re: Paralllel/Asynchronous execution Reply with quote

Let's say you have 5 "worker" jobs in a group.
For every group create an extra "control" job that launches other jobs in group as below

Dim( pid, number )
Run( "24x7.exe /JOB [job id 1]", "", pid )
Run( "24x7.exe /JOB [job id 2]", "", pid )
Run( "24x7.exe /JOB [job id 3]", "", pid )
Run( "24x7.exe /JOB [job id 4]", "", pid )
Run( "24x7.exe /JOB [job id 5]", "", pid )

This will start all 5 "worker" jobs concurently (parallel)

Now to create a sequential group run (group after group after group) set each "worker" job to create a unique semaphore file on job finish, and set each control file for the "following" group to watch for "previous" group files semaphore files. You can use the built-in Dependencies Editor tool to do this graphically. Make sure every "worker" job is set to run synchronously.

: Hi,

: My application needs to run "groups" of jobs in sequence, but the
: all the jobs within
: one group need to run in parallel. How do I approach this in JAL?

: Thanks
: George Coles

Wed Jan 19, 2005 7:16 pm View user's profile Send private message
George Coles



Joined: 19 Jan 2005
Posts: 3

Post Re: Paralllel/Asynchronous execution Reply with quote

Thanks for the swift reply. I think I understand this,
I just downloaded the manual today. I don't want to complicate things
too much, but in my app each job is actually a windows forms application,
there are 15 copies of the app running, each one running on a different
pc, and it must run interactively, which is a bad constraint. My job control app needs to know when these apps are done, and users should
be able to kill individual jobs in the list, or all jobs if they want. Can I customize
your GUI? I have written an app that does this with sockets and WMI that has
been running for several months, but I dont see why I should maintain this
when products like yours exist.

What are the implications of this in licensing terms?

Thanks in advance,
George

: Let's say you have 5 "worker" jobs in a group.
: For every group create an extra "control" job that launches other
: jobs in group as below

: Dim( pid, number )
: Run( "24x7.exe /JOB [job id 1]", "", pid )
: Run( "24x7.exe /JOB [job id 2]", "", pid )
: Run( "24x7.exe /JOB [job id 3]", "", pid )
: Run( "24x7.exe /JOB [job id 4]", "", pid )
: Run( "24x7.exe /JOB [job id 5]", "", pid )

: This will start all 5 "worker" jobs concurently (parallel)

: Now to create a sequential group run (group after group after group) set each
: "worker" job to create a unique semaphore file on job finish,
: and set each control file for the "following" group to watch for
: "previous" group files semaphore files. You can use the built-in
: Dependencies Editor tool to do this graphically. Make sure every
: "worker" job is set to run synchronously.

Wed Jan 19, 2005 7:24 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7970

Post Re: Paralllel/Asynchronous execution Reply with quote

You can write a custom Windows application or create a Web-based system using either COM or Java API to present job flow in a form easily understood by end-users (see 24x7 API's manuals for more info)

If you set each "worker" job to run synchronously as I previously suggested you would always know when they are done. If the total number of jobs running is big I also suggest enabling job start/finish event notifications of database type each job. This way you can have all jobs from all PC to log events into a centralized database which you can always read/monitor from any custom application. If you want to control/orchestrate all applications on multiple computers from one place consider running one central 24x7 Scheduler and running 24x7 Remote Agents on other PCs. This way you can run and control jobs remotely.

For every PC with 24x7 software installed you would need a separate installation license as well as a license for your custom application (if any) using 24x7 COM/Java API (client part). If the number of computers where you plan to install 24x7 is 10+ (also count PCs for system administrators who could monitor and manage jobs remotely using 24x7 Remote Control) consider getting a site license. The site license also includes web-base interface (Web-based Management Console) allows using API with a web-server and some other goodies.

: Thanks for the swift reply. I think I understand this,
: I just downloaded the manual today. I don't want to complicate things
: too much, but in my app each job is actually a windows forms application,
: there are 15 copies of the app running, each one running on a different
: pc, and it must run interactively, which is a bad constraint. My job control
: app needs to know when these apps are done, and users should
: be able to kill individual jobs in the list, or all jobs if they want. Can I
: customize
: your GUI? I have written an app that does this with sockets and WMI that has
: been running for several months, but I dont see why I should maintain this
: when products like yours exist.

: What are the implications of this in licensing terms?

: Thanks in advance,
: George

Wed Jan 19, 2005 7:55 pm View user's profile Send private message
George Coles



Joined: 19 Jan 2005
Posts: 3

Post Re: Paralllel/Asynchronous execution Reply with quote

Thank you for all your help.

Best Regards
George Coles

: You can write a custom Windows application or create a Web-based system using
: either COM or Java API to present job flow in a form easily understood by
: end-users (see 24x7 API's manuals for more info)

: If you set each "worker" job to run synchronously as I previously
: suggested you would always know when they are done. If the total number of
: jobs running is big I also suggest enabling job start/finish event
: notifications of database type each job. This way you can have all jobs
: from all PC to log events into a centralized database which you can always
: read/monitor from any custom application. If you want to
: control/orchestrate all applications on multiple computers from one place
: consider running one central 24x7 Scheduler and running 24x7 Remote Agents
: on other PCs. This way you can run and control jobs remotely.

: For every PC with 24x7 software installed you would need a separate
: installation license as well as a license for your custom application (if
: any) using 24x7 COM/Java API (client part). If the number of computers
: where you plan to install 24x7 is 10+ (also count PCs for system
: administrators who could monitor and manage jobs remotely using 24x7
: Remote Control) consider getting a site license. The site license also
: includes web-base interface (Web-based Management Console) allows using
: API with a web-server and some other goodies.

Thu Jan 20, 2005 9:21 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.