gpt4 book ai didi

基于 Python 的作业调度程序,具有依赖性解析

转载 作者:太空狗 更新时间:2023-10-30 01:38:42 24 4
gpt4 key购买 nike

我正在寻找一个基于 Python 的作业调度程序,它具有作业依赖性解析(可能以 XML 格式指定)。现有的大多在特定时间启 Action 业,但没有解决作业之间的依赖关系,即依赖于作业 X 和 Y 的作业 Z 应该仅在成功完成 X 和 Z 后启动。

预计将在 64 位 Windows 上运行。依赖项/安装要求越少越好。

最佳答案

你可能想试试 RQ .

To execute a job that depends on another job, use the depends_on argument:

q = Queue('low', async=False) 
report_job = q.enqueue(generate_report)
q.enqueue(send_report, depends_on=report_job)

The ability to handle job dependencies allows you to split a big job into several smaller ones. A job that is dependent on another is enqueued only when it's dependency finishes successfully.

关于基于 Python 的作业调度程序,具有依赖性解析,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10816175/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com