[英]shell scripts in parallel using python
I have a task to optimize a process and for that, I need to orchestrate multiple shell scripts using python.我的任务是优化流程,为此,我需要使用 python 编排多个 shell 脚本。
Let's assume I have 13 ksh scripts.假设我有 13 个 ksh 脚本。 I want to build the python script such that
我想构建 python 脚本,这样
I have summarized the above points in a flow diagram.我在流程图中总结了以上几点。
There is also a special requirement for failure as follows:对于失败还有一个特殊要求如下:
I need help in designing a python script for the above requirement.在为上述要求设计 python 脚本时,我需要帮助。
this can quickly become a complicated problem.这很快就会成为一个复杂的问题。 but at the core, you have
但在核心,你有
There are a lot of pitfalls in designing this, for example how do you detect and prevent loops in the job dependencies.设计这个有很多陷阱,例如你如何检测和防止作业依赖中的循环。 there are many open source system out there for batch jobs, you should take a look.
有许多用于批处理作业的开源系统,你应该看看。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.