如何 运行 或通过 python 脚本执行 Talend 作业?

How to run or execute Talend jobs through python script?

我需要 运行 talend 工作室以外的 talend 工作。有什么方法可以通过 python 脚本执行 talend 作业吗?

这是一项常见任务,下面的 link 给出了创建 .bat/.sh /jar 的详细分步过程。

https://community.talend.com/t5/Migration-Configuration-and/Exporting-a-Job-script-and-executing-it-outside-of-Talend-Studio/ta-p/21686

创建作业后,您可以使用子进程从 python 触发它。

import subprocess

subprocess.call(['(path)talendJob.jar'])

通常您可以使用任何流程管理工具来执行此操作。例如 主管http://supervisord.org/。这是基于流程管理的 在 python.