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 に答える