2

我已经运行了一个以代码 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

和分配状态:

# 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出现在成功的任务上?

4

1 回答 1

0

它失败了一次,并在第二次尝试中完成。

于 2017-08-23T12:52:07.097 回答