in reply to CA::AutoSys::Jil module
Hi,
how is the Condition string split into different jobs and inserted in the autosys JOB_COND table.
If JobA has condition s(B) and S(C) and (s(D) or f(E))
then i see that JOB_COND has several entries for JobA,
for each job in the original condition.
There are also pointers, Index values that define how the binary expression tree is built to evaluate the condition expression.
Can you please let me know where and when exactly is the original condition provided in the input file, is parsed and inserted in the JOB_COND table. And where can i see this parser code.
Thanks,
-srinivas
Re^2: CA::AutoSys::Jil module
by runrig (Abbot) on Sep 18, 2008 at 15:07 UTC
|
I'm not doing anything with the AutoSys database tables. This code does not create jobs or insert anything into or even directly access any database tables. I'm just parsing the output of the autorep and job_depends commands. job_depends can tell you the status of each condition in the condition string for existing jobs, and I'm parsing that in the get_status() method. The original purpose of that part of the module was to facilitate writing code to tell what condition or job might be holding up another job.
The CA::AutoSys module on CPAN does get information straight from the AutoSys database.
| [reply] |
|