How to configure a job to run based on either a job dependency or a time condition.

book

Article ID: 48606

calendar_today

Updated On:

Products

CA Workload Automation AE - Business Agents (AutoSys) CA Workload Automation AE - Scheduler (AutoSys) CA Workload Automation Agent

Issue/Introduction

Create 3 jobs.
JobA - a NULL job to run each day at 13:00.
JobB - a job to run based on its schedule for which JobC will have a dependency on.
JobC - a job to run based on either time being 13:00 or s(JobB)
The condition setting would read: s(JobA) or s(JobB)

Example:

insert_job: JobA
job_type: c
command: true
machine: localhost
date_conditions: 1
days_of_week: all
start_times: "13:00"

insert_job: JobB
job_type: c
command: true
machine: localhost
date_conditions: 1
days_of_week: all
start_times: "11:00"

insert_job: JobC
job_type: c
command: true
machine: localhost
condition: s(JobA) or s(JobB)

Environment

Release: ATSYHA99000-11.3.5-Workload Automation AE-High Availability Option
Component: