Problem with execute command activity in sequence job.
Posted: Wed Feb 27, 2008 5:59 am
Background
There is a limit to the number of jobs that can run on ControlM (ControlM is a scheduling tool that invokes the DS jobs through scripts.) server, Due to this we are trying to reduce the no. of ControlM jobs. There are 220 jobs in the application. Creating 220 scripts (one script per job) is not feasible as these jobs will run for 200+ site in which case we will have approx. 200*220=44000 ControlM jobs on ControlM, which exceeds the ControlM limit.
Problem Description
We have created a generic script, that invokes the job passed to the script as a parameter. The parameter required for the job are identified and assigned values at run time.
The plan is use a sequence job that will call this generic script once for each job in the sequence, for invoking the script we have used the execute command activity, but the problem with this is the execute command activity runs sequentially even though these stages are placed in parallel in sequencer job.
One work around this problem is to call a dummy job from a job activity in the sequence job and inturn this dummy job invokes the generic script. Since the job activity stage runs in parallel it indirectly executes the scripts in parallel. But again here the problem here is the director log for this dummy job would be huge as the same dummy job would be called for 220 jobs in the appliaction multiplied by the number of sites (220*200)
Note:- We cant call the jobs directly from job acctivities since there as some scripts which needs to be called after execution of each job and also we cannot call these scripts in "after job subroutines" as its against the best practices defined for project.
Please let me know if you have any solutions.
There is a limit to the number of jobs that can run on ControlM (ControlM is a scheduling tool that invokes the DS jobs through scripts.) server, Due to this we are trying to reduce the no. of ControlM jobs. There are 220 jobs in the application. Creating 220 scripts (one script per job) is not feasible as these jobs will run for 200+ site in which case we will have approx. 200*220=44000 ControlM jobs on ControlM, which exceeds the ControlM limit.
Problem Description
We have created a generic script, that invokes the job passed to the script as a parameter. The parameter required for the job are identified and assigned values at run time.
The plan is use a sequence job that will call this generic script once for each job in the sequence, for invoking the script we have used the execute command activity, but the problem with this is the execute command activity runs sequentially even though these stages are placed in parallel in sequencer job.
One work around this problem is to call a dummy job from a job activity in the sequence job and inturn this dummy job invokes the generic script. Since the job activity stage runs in parallel it indirectly executes the scripts in parallel. But again here the problem here is the director log for this dummy job would be huge as the same dummy job would be called for 220 jobs in the appliaction multiplied by the number of sites (220*200)
Note:- We cant call the jobs directly from job acctivities since there as some scripts which needs to be called after execution of each job and also we cannot call these scripts in "after job subroutines" as its against the best practices defined for project.
Please let me know if you have any solutions.