I want to trigger job A if Job B is in running condition. How to achieve this scenario in CA Automic Workload Automation?
The most simple way is to define a Workflow Object, make Job A and B part of it, use the line to build the dependency. Using the properties you can apply also definitions like run a notification object and what should happen if Job A fails.
Please Ignore the above. Miss interpreted you question.
try with SYNC object
VidyaPraveenBatchu605049 could you please explain a bit more on how to use the sync objects for below scenarios.
1: Job B should run when Job A is running
2: Job B should NOT run when Job A is running.
Is Job A or B part of an other Workflow or independent scheduled? Does "B should not run" mean skip the activation or wait?With Sync the right Sync Status and addressing in Start / End / Abend Sync definition of the object it will work.
Samples you can find her but it has to be adopt to your needs:Sync Samples from docs.automic.com
Thanks for the reply.
Q:Is Job A or B part of an other Workflow or independent scheduled?
A:Job A and Job are independently scheduled.
I will explain my problem in detail:
Let say Box Job A is scheduled to run at 10:00 PM. If Job A is in running condition till 1:00 AM i want trigger one mail saying xyz process delayed. This is my requirement.
Please use the MaxRunTime on the Job definition level in your case 3 hours. Here you can put a Notification Object in case of the MaxRunTime is reached. There is the Notification Object type Mail what will help you with sending the Mail to you, team mailbox or Ticket Mailbox. No need to use a Sync or 2nd Job to achieve this.
If i give maximum run time as 180 minutes then job should not fail if its exceed the maximum run time condition.
As long you don't use the cancel option, it will not fail if the MRT is reached, it will execute just the Notification you have place to send you a mail.
As per your input i gave MRT as 180 Minutes.In the Notification Services area i got following Options:
1. Notification : Three Options:
a) Do not Notify
c) Notify Only if job fails
3. Email Address
I want to customize my email content. Please tell me in detail how to achieve this because i am novice user of Autosys.
Use the execute option and adress the Notification Object there where you set the MRT. Thats all you need to do.
okay thanks a lot for your response.
Retrieving data ...