【问题标题】:Can I create One Box Job inside another box job in Autosys by JIL我可以在 JIL 的 Autosys 中的另一个盒子作业中创建一个盒子作业吗
【发布时间】:2020-06-22 12:37:11
【问题描述】:

我想写一个 JIL 文件,其中我想要一个主要的盒子,然后在这个盒子作业中另一个盒子作业,然后我想写一个命令作业。

我一直没能找到语法以及是否可以在另一个盒子作业中编写一个盒子作业。

【问题讨论】:

  • 有可能...对于子框作业...在box属性中添加子框
  • @Piyush,你能给我一个示例脚本或命令来在 JIL 文件中添加子框作业吗?

标签: automation autosys


【解决方案1】:

考虑以下名称:

Major_Box - 父框
Child_Box - 子框
Job_A - 子框下的 CMD 作业

JIL 示例:

insert_job: Major_Box
job_type: BOX
owner: xyz
date_conditions: 1
days_of_week: all
start_times: "06:00"
timezone: IST

insert_job: Child_Box
job_type: BOX
box_name: Major_Box
owner: xyz
date_conditions: 1
days_of_week: all
start_times: "06:15"
timezone: IST

insert_job: Job_A
job_type: CMD
box_name: Child_Box
command: bash /absolute_path/script_name.sh
owner: xyz
machine: hostname
date_conditions: 1
days_of_week: all
start_times: "06:30"
timezone: IST

这里,

Major_Box 将在 6:00 触发,它会激活 Child_box 但不会触发它。

在 6:15,当时间条件为真时,Activated Child_Box 将被触发,从而激活 Job_A。

在 6:30,激活的 Job_A 将触发运行上述命令。

此外,您还包括先前工作/框的条件

condition: Success(Another_Job)

希望这会有所帮助。如果您需要更多,请告诉我。 祝你好运

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-01-21
    • 1970-01-01
    相关资源
    最近更新 更多