使用 DC/OS Metronome,我们正在运行一些作业。当它们失败时,它们会报告失败,但不提供退出代码、日志或任何输出来调试它们。我在这里检查了这个Rest API,但没有看到获取日志或输出的方法。是否有可能找出我的工作发生了什么?
我试过了:
/service/metronome/v1/jobs/<jobid>?embed=history
# Returns
{...
"history": {
"successCount": 0,
"failureCount": 1,
"lastSuccessAt": null,
"lastFailureAt": "2021-09-28T17:31:28.578+0000",
"successfulFinishedRuns": [],
"failedFinishedRuns": [
{
"id": "20210928173105qgPza",
"createdAt": "2021-09-28T17:31:05.415+0000",
"finishedAt": "2021-09-28T17:31:28.578+0000"
}
]
}
...}
但是通过其 ID 获取该作业“运行”不会返回任何内容。
/service/metronome/v1/jobs/<jobid>/runs/20210928173105qgPza
# Returns
{
"jobSpec": "<jobid>",
"id": "20210928173105qgPza",
"message": "Job Run not found"
}