laknarc has asked for the wisdom of the Perl Monks concerning the following question:
we are using oracle database as job control repository. we have 1000's of ETL jobs to execute based on the dependency. So far i have built some control tables and a stored procedure to pull the jobs based on the dependency. When we need to start the batch, i need to update the "BATCH_STATUS" to "START" and trigger the batch jobs based on the dependency. im trying to build a perl script to start the batch and keep running the stored procedure to pull the jobs based on the dependencies and execute the jobs. when job execution starts i need to log with a start time and when completes update the end time and elapsed time. this script will run until batch completes. After that we need to stop the batch by updating "STOP" in control table so that the infinite process gets killed.
START_STOP_CTL (BATCH_STATUS,NO_OF_JOBS_CAN_RUN_PARALLEL) JOBS (all the jobs with status - READY, RUNNING,SUCCESS,FAILED) JOBPARAMS - All the job parameters JOBDEPENDENCIES - All jobs dependent information JOB_LOG -- Log each job execution
I need your help to run this script in loop and execute the jobs.my common script name is "run_etl_jobs.pl". the same script will be called to execute each and every ETL job with different parameters. Please provide your ideas to build this script.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Job scheduling?
by KurtSchwind (Chaplain) on Jul 09, 2015 at 19:40 UTC | |
by laknarc (Initiate) on Jul 09, 2015 at 23:50 UTC | |
by tbone654 (Beadle) on Jul 10, 2015 at 04:47 UTC | |
|
Re: Job scheduling?
by GotToBTru (Prior) on Jul 10, 2015 at 14:10 UTC |