nomad:摘要失败= 1并且同时完成= 1

时间:2017-08-23 10:23:50

标签: nomad

我运行了一个以代码0退出的已分派作业。但是在作业摘要中,我看到作业同时有failedcompleted

# nomad status run-packaging-a8173887-b37f-4273-9ad7-8691654bb5d4/dispatch-1503480991-c1bd3b3f
ID            = run-packaging-a8173887-b37f-4273-9ad7-8691654bb5d4/dispatch-1503480991-c1bd3b3f
Name          = run-packaging-a8173887-b37f-4273-9ad7-8691654bb5d4/dispatch-1503480991-c1bd3b3f
Submit Date   = 08/23/17 09:36:31 UTC
Type          = batch
Priority      = 50
Datacenters   = mhd
Status        = dead
Periodic      = false
Parameterized = false

Summary
Task Group  Queued  Starting  Running  Failed  Complete  Lost
system      0       0         0        1       1         0

Allocations
ID        Node ID   Task Group  Version  Desired  Status    Created At
aec6e219  769ff893  system      0        run      complete  08/23/17 09:36:31 UTC

和alloc-status:

# nomad alloc-status aec6e219

Recent Events:
Time                   Type        Description
08/23/17 09:37:16 UTC  Terminated  Exit Code: 0
08/23/17 09:36:31 UTC  Started     Task started by client
08/23/17 09:36:31 UTC  Task Setup  Building Task Directory
08/23/17 09:36:31 UTC  Received    Task received by client

如何解释这个结果?怎么可能以及为什么failed出现在成功的任务上?

1 个答案:

答案 0 :(得分:0)

失败一次,第二次尝试完成。