AutoSys Workload Automation

 View Only
Expand all | Collapse all

can logic be added to the delete_job set of attributes that will automatically remove the job from the condition field of any remaining job on that instance?

  • 1.  can logic be added to the delete_job set of attributes that will automatically remove the job from the condition field of any remaining job on that instance?

    Posted Feb 28, 2018 07:08 AM

    Can we add logic to the delete_job set of attributes that will automatically remove the job from the condition field of any remaining job on that instance? (or cross instance)

     

    For example, if job1 was a deletion target in the conditional example below:

    condition: (s(job1) && s(job2)) || f(job1) && s(job3)

     

    The code would have to properly rebuild this and confirm flow logic was maintained while ‘understanding’ any implications of the remaining operands and parenthesis.

    condition: s(job2) || s(job3)



  • 2.  Re: can logic be added to the delete_job set of attributes that will automatically remove the job from the condition field of any remaining job on that instance?

    Broadcom Employee
    Posted Feb 28, 2018 07:16 AM

    Hi Daniel,

     

    If running jil in job verification mode, the delete_job subcommand checks the ujo_job_cond table and notifies you if the deleted job had dependent conditions.

     

    You can consult the following docops page for more detailed information:

     

    https://docops.ca.com/ca-workload-automation-ae/11-4-2/en/reference/ae-job-information-language/jil-job-definitions/dele… 

     

    Thanks,

    Roya



  • 3.  Re: can logic be added to the delete_job set of attributes that will automatically remove the job from the condition field of any remaining job on that instance?

    Posted Feb 28, 2018 07:21 AM

    Agreed, and that works fine.

    I'm asking a more complicated question, in that, can we add a flag that REMOVES the job from the conditions of other jobs... not just identifies it.

    delete_job: job1

    force: y

    auto_update: y

     

    For example, if job1 was a deletion target in the conditional example below:

    insert_job: job5

    condition: (s(job1) && s(job2)) || f(job1) && s(job3)

     

    The code would have to properly rebuild this and confirm flow logic was maintained while ‘understanding’ any implications of the remaining operands and parenthesis, resulting in this below with job1 references auto-removed.

    insert_job: job5
    condition: 
    s(job2) || s(job3)



  • 4.  Re: can logic be added to the delete_job set of attributes that will automatically remove the job from the condition field of any remaining job on that instance?

    Broadcom Employee
    Posted Mar 01, 2018 12:15 AM

    This ask would be an enhancement. Please raise it as an Idea. The in the current versions of WAAE, A restriction on the user's ability to  delete_job can be set if the job has any dependencies. The users shall manually remove the job from the dependant jobs' logic prior to delete.

    Please refer to the RESTRICT_DELETE_DEPENDENT_JOB=1

     

    https://docops.ca.com/ca-workload-automation-ae/11-4-2/en/scheduling/ae-scheduling/manage-your-jobs/restrict-the-runtime-behavior-of-jobs

     

    Regards,
    Kishore Kumar Udathaneni



  • 5.  Re: can logic be added to the delete_job set of attributes that will automatically remove the job from the condition field of any remaining job on that instance?

    Posted Mar 01, 2018 07:19 AM

    Kishore those are good but generally prohibitive as it is at a global level. and sometimes one needs to remove it :-)



  • 6.  Re: can logic be added to the delete_job set of attributes that will automatically remove the job from the condition field of any remaining job on that instance?

    Broadcom Employee
    Posted Mar 01, 2018 06:13 PM

    I agree.  The users might feel a bit prohibited, however, setting up these restrictions will ensure the users follow good standard procedures. The decision has to be taken by the infrastructure at the global level. I don't see any other way around.

     

    Cheers,
    Kishore Kumar Udathaneni



  • 7.  Re: can logic be added to the delete_job set of attributes that will automatically remove the job from the condition field of any remaining job on that instance?

    Broadcom Employee
    Posted Feb 28, 2018 07:20 AM

    Hi Daniel,

     

    You can consult the following page for more information about jil verification mode:

     

    https://docops.ca.com/ca-workload-automation-ae/11-4-2/en/reference/ae-commands/define-workload-objects/jil-command-run-… 

     

    jil

     

    -V {none | job | session| batch| syntax}
    (Optional) Specifies which job dependency information that the JIL processor verifies.

     

    I hope this can help.

     

    Thanks,

    Roya



  • 8.  Re: can logic be added to the delete_job set of attributes that will automatically remove the job from the condition field of any remaining job on that instance?

    Posted Mar 01, 2018 07:19 AM

    Roya, I can attest that Dan is well versed with jil verification. 



  • 9.  Re: can logic be added to the delete_job set of attributes that will automatically remove the job from the condition field of any remaining job on that instance?
    Best Answer

    Posted Feb 28, 2018 07:24 AM

    Dan

     

    That would be an ideation to present not a question, however this is not that simple as you know from past experiences

    before you do , please keep this in mind:

    what IF the job was deleted and re-added due to a process flow (box) change? then what?

    the conditions are removed from all the jobs and now have to be re-added...which makes possibly even more work.

    i see your attribute, however, it could be misinterpreted and people would put it in by default. 

    one must think of all these possibilities.

    Perhaps, to your point an overall cleanup process to remove once you know a job is absolutely not coming back. :-)

     

    Just something to keep in mind, buddy.

    Hope all is well. 

    Steve C.



  • 10.  Re: can logic be added to the delete_job set of attributes that will automatically remove the job from the condition field of any remaining job on that instance?

    Posted Feb 28, 2018 07:30 AM

    Yes, definately, the user would add the removal flag only if and when they are sure it will not be immediately re-inserted.



  • 11.  Re: can logic be added to the delete_job set of attributes that will automatically remove the job from the condition field of any remaining job on that instance?

    Posted Mar 03, 2018 08:30 PM

    Hi Dan,

     

    Please raise this an an Idea as suggested by Steve C's.

     

    Thank you,

    Chandru