autosys - 一个接一个地运行作业列表(jil中的顺序必须反映依赖性)

时间:2013-02-13 19:42:18

标签: autosys

我有一份工作清单顺序完成(一个接一个)。如果我在

中列出我的所有工作
---- myjobsBox.jil---
# cleanup-db Jobsinsert_job: **CleanupDB_Box**
job_type: b 
date_conditions: yes 
days_of_week: all 
start_times: "02:00, 17:00"


#########   dbpurge1

insert_job: dbpurge1
job_type: c
box_name: CleanupDB_Box
command: cmd1
machine: mymachine.com
permission: mx,
std_out_file: /var/tmp/cleanupdb.log
std_err_file: /var/tmp/cleanupdb.err
alarm_if_fail: 1


#########   dbpurge2
insert_job: dbpurge2
job_type: c
box_name: CleanupDB_Box
command: cmd1
machine: mymachine.com
permission: mx,
std_out_file: /var/tmp/cleanupdb.log
std_err_file: /var/tmp/cleanupdb.err
alarm_if_fail: 1
condition: done(dbpurge1) # Can I avoid this? Is there a way to tell-the-box to execute the jobs in the order in which it is mentioned in jil file?
#########   dbpurge3
insert_job: dbpurge3
job_type: c
box_name: CleanupDB_Box
command: cmd1
machine: mymachine.com
permission: mx,
std_out_file: /var/tmp/cleanupdb.log
std_err_file: /var/tmp/cleanupdb.err
alarm_if_fail: 1
condition: done(dbpurge2) # Can I avoid this?

条件:完成(dbpurge1)#我可以避免这个吗?

有没有办法告诉盒子按照jil文件中存在的顺序执行作业? ONE-AFTER-OTHER .. SEQUENTIAL .. NOT-PARALLEL。

1 个答案:

答案 0 :(得分:2)

没有办法做到这一点,你必须使用condition参数。 您是否有任何特殊原因要避免使用条件参数?