0

我有一份要按顺序完成的工作清单(一个接一个)。如果我列出我所有的工作

---- 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文件中的顺序执行作业?一个接一个..顺序..不平行。

4

1 回答 1

3

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

于 2013-02-14T11:56:30.777 回答