Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法通过rest API获取作业模板执行的作业ID?
另外,我们可以根据作业 ID 轮询作业吗?
/api/v2/job_templates/<JT_ID>/jobs/将为您提供从该作业模板启动的所有作业。还有一些方便/摘要字段/api/v2/job_templates/<JT_ID>/可帮助您找到最后一份工作
/api/v2/job_templates/<JT_ID>/jobs/
/api/v2/job_templates/<JT_ID>/
然后,您可以使用此端点来监控作业
/api/v2/jobs/<JOB_ID>/stdout/