我一直试图找出“状态”的完整值列表。在https://puppet.com/docs/pe/2017.3/orchestrator/orchestrator_api_jobs_endpoint.html#puppet-orchestrator-api-jobs-endpoint
的回复中有很多州。我到目前为止确定的是
errored
finished
new
ready
running
还有,这是什么意思。准备好表示完成,或准备开始并等待机会吗?
答案 0 :(得分:1)
可能的作业状态是:新的,准备好的,正在运行,停止,停止,完成,失败。
从新的过渡 - >准备好了 - >跑步通常很快发生。工作最终将具有以下三种状态之一:停止,完成,失败。
State | Description ------------|------------------------------------------------------------ new | Job is recording the initial details ready | Job is recorded but no nodes are running or queued running | Job has nodes that are running or queued stopping | Stop command issued but some nodes in job are still running stopped | Job had stop command issued and is "completed" finished | Job completed successfully on all nodes failed | Job completed but some nodes had errors/failures
控制台使用Orchestrator API中的这些作业状态值将状态列中的这些字符串映射:
Console Status | api state -----------------------|----------- Queued | new, ready In progress | running Stopping | stopping Succeeded | finished Finished with failures | failed Stopped | stopped
答案 1 :(得分:0)
从Matt的回答中我发现有两种状态我没有在API文档中明确看到过
stopping
stopped
有了一点想象力,我可以想出这个映射
Page API
In progress - new, ready, running
Succeeded - finished
Finished with failures - errored
Stopping - ? stopping
Stopped - ? stopped
当事情一致时总是很好: - /
如果有人能证实这个
会很好