我有一份要按顺序完成的工作清单(一个接一个)。如果我列出我所有的工作
---- 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?
condition: done(dbpurge1) # 我可以避免这种情况吗?
有没有办法告诉盒子按照它在jil文件中的顺序执行作业?一个接一个..顺序..不平行。