mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 18:35:44 +03:00
Include parent ID in job info returned by Go API
At the moment, this ID is only included when using `Jobs().List()`, which returns `api.JobListStub`. With this change, the ID will also be available when using `Jobs().Info()`, which returns `api.Job`. In fact, `ParentID` is currently the only field present in `api.JobListStub` that is not part of `api.Job`. Note: This has the side effect that `nomad run -output` will now include an empty `ParentID`.
This commit is contained in:
@@ -191,6 +191,7 @@ type PeriodicConfig struct {
|
||||
type Job struct {
|
||||
Region string
|
||||
ID string
|
||||
ParentID string
|
||||
Name string
|
||||
Type string
|
||||
Priority int
|
||||
|
||||
Reference in New Issue
Block a user