agent/api/task/status/statusmapping.go
func MapTaskToContainerStatus(desiredState TaskStatus, steadyState apicontainerstatus.ContainerStatus) apicontainerstatus.ContainerStatus {
	switch desiredState {
	case TaskStatusNone:
		return apicontainerstatus.ContainerStatusNone
	case TaskCreated:
		return apicontainerstatus.ContainerCreated
	case TaskRunning:
		return steadyState
	case TaskStopped:
		return apicontainerstatus.ContainerStopped
	}
	return apicontainerstatus.ContainerStatusNone
}
func MapTaskToContainerStatus(desiredState TaskStatus, steadyState apicontainerstatus.ContainerStatus) apicontainerstatus.ContainerStatus {
	switch desiredState {
	case TaskStatusNone:
		return apicontainerstatus.ContainerStatusNone
	case TaskCreated:
		return apicontainerstatus.ContainerCreated
	case TaskRunning:
		return steadyState
	case TaskStopped:
		return apicontainerstatus.ContainerStopped
	}
	return apicontainerstatus.ContainerStatusNone
}
// MapTaskToContainerStatus maps the task status to the corresponding container status