mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 10:25:42 +03:00
update structs with lifecycle
This commit is contained in:
@@ -924,6 +924,13 @@ func ApiTaskToStructsTask(apiTask *api.Task, structsTask *structs.Task) {
|
||||
File: apiTask.DispatchPayload.File,
|
||||
}
|
||||
}
|
||||
|
||||
if apiTask.Lifecycle != nil {
|
||||
structsTask.Lifecycle = &structs.TaskLifecycleConfig{
|
||||
RunLevel: apiTask.Lifecycle.RunLevel,
|
||||
BlockUntil: apiTask.Lifecycle.BlockUntil,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func ApiResourcesToStructs(in *api.Resources) *structs.Resources {
|
||||
|
||||
Reference in New Issue
Block a user