如何在不运行依赖项的情况下运行 autosys 作业?
我想换一份 Autosys 工作。进行更改后:
- 我想通过独立运行它而不运行任何依赖项来测试它。
- 当我完成测试后,我希望它处于“正常”状态;即,以便它(及其依赖项)第二天照常自动运行。
这似乎是调度系统的一个非常基本的要求。
实际上,满足#1 的唯一方法似乎是在测试期间将依赖项置于 ON_HOLD 状态。
问题是,当我在最后(对于#2)将它们取消时,它们会立即检查它们的条件并运行 - 这违反了要求#1。
我可以尝试通过将它们设置为“不活动”来满足条件#2,但我被告知这样做会立即设置“框”,这样的工作可能会成功 - 这可能会再次触发依赖者,违反#1.
有什么想法吗?
I wish to make a change to an autosys job. After I make the change:
- I want to test it by running it in isolation without running any dependents.
- After I have finished testing, I want it to be in a "normal" state; i.e. so that it (and its dependents) run automatically as usual the next day.
This seems like a pretty elementary requirement for a scheduling system.
Realistically the only way to satisfy #1 seems to be to put the dependents ON_HOLD for the duration of the test.
The trouble is that when I take them off hold at the end (for #2), they will immediately check their conditions and run - this violates requirement #1.
I could instead try satisfying condition #2 by setting them to INACTIVE, but I'm told that doing so immediately sets the box such a job may be in to SUCCESS - which presumably may again trigger dependents, violating #1.
Any thoughts?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
在运行作业之前将所有依赖项设置为 SUCCESS。
Set all the dependents to SUCCESS before running the job.
如果您想手动运行作业,请将 FORCE_START 事件发送到该作业。它忽略依赖关系。作业将开始,完成后设置为成功或失败。
如果为了您的测试,您希望自动触发您的作业,那么确实必须满足该作业的条件。
If you want to run job manually, you send FORCE_START event to that job. It ignores dependencies. Job will be started and after done set to SUCCESS or FAILURE.
If for your testing you want your job to be triggered automatically, then indeed condition of this job must be met.
您始终可以 FORCE_START 作业/盒子。这忽略了作业/盒子的依赖关系 - 它只会启动。
如果您想测试计划运行(并忽略依赖项),则将依赖项置于 ON_HOLD 对您没有帮助。依赖于 ON_HOLD 作业的作业将等待满足依赖关系。
将依赖项置于 ON_ICE 是正确的方法。 ON_ICE 依赖性被忽略。
此外,将冻结作业置于 OFF_ICE 不会立即启动它们 - 它们将等待下一次计划运行。
You may always FORCE_START job/box. That ignores dependencies for the job/box- it will just start.
If you want to test scheduled run (and ignore dependencies) putting dependencies ON_HOLD will not help you. Job that has dependencies on ON_HOLD job will wait for dependencies to be met.
Putting dependencies ON_ICE is correct way. ON_ICE dependencies are ignored.
Also, putting iced job OFF_ICE will not start them immediately-they will wait for next scheduled run.