func (task *Task) updateContainerDesiredStatusUnsafe(taskDesiredStatus apitaskstatus.TaskStatus) {
	for _, container := range task.Containers {
		taskDesiredStatusToContainerStatus := apitaskstatus.MapTaskToContainerStatus(taskDesiredStatus, container.GetSteadyStateStatus())
		if container.GetDesiredStatus() < taskDesiredStatusToContainerStatus {
			container.SetDesiredStatus(taskDesiredStatusToContainerStatus)
		}
	}
}
func (task *Task) updateContainerDesiredStatusUnsafe(taskDesiredStatus apitaskstatus.TaskStatus) {
	for _, container := range task.Containers {
		taskDesiredStatusToContainerStatus := apitaskstatus.MapTaskToContainerStatus(taskDesiredStatus, container.GetSteadyStateStatus())
		if container.GetDesiredStatus() < taskDesiredStatusToContainerStatus {
			container.SetDesiredStatus(taskDesiredStatusToContainerStatus)
		}
	}
}
func ( task * Task ) updateContainerDesiredStatusUnsafe ( taskDesiredStatus apitaskstatus . TaskStatus ) { for _ , container := range task . Containers { taskDesiredStatusToContainerStatus := apitaskstatus . MapTaskToContainerStatus ( taskDesiredStatus , container . GetSteadyStateStatus ( ) ) if container . GetDesiredStatus ( ) < taskDesiredStatusToContainerStatus { container . SetDesiredStatus ( taskDesiredStatusToContainerStatus ) } } }
// updateContainerDesiredStatusUnsafe sets all container's desired status's to the
// task's desired status
// Invariant: container desired status is <= task desired status converted to container status
// Note: task desired status and container desired status is typically only RUNNING or STOPPED
updateContainerDesiredStatusUnsafe sets all container s desired status s to the task s desired status Invariant : container desired status is < = task desired status converted to container status Note : task desired status and container desired status is typically only RUNNING or STOPPED