agent/api/task/task_linux.go
func (task *Task) BuildCgroupRoot() (string, error) {
	taskID, err := task.GetID()
	if err != nil {
		return "", errors.Wrapf(err, "task build cgroup root: unable to get task-id from task ARN: %s", task.Arn)
	}

	return filepath.Join(config.DefaultTaskCgroupPrefix, taskID), nil
}
func (task *Task) BuildCgroupRoot() (string, error) {
	taskID, err := task.GetID()
	if err != nil {
		return "", errors.Wrapf(err, "task build cgroup root: unable to get task-id from task ARN: %s", task.Arn)
	}

	return filepath.Join(config.DefaultTaskCgroupPrefix, taskID), nil
}
func ( task * Task ) BuildCgroupRoot ( ) ( string , error ) { taskID , err := task . GetID ( ) if err != nil { return " " , errors . Wrapf ( err , " " , task . Arn ) } return filepath . Join ( config . DefaultTaskCgroupPrefix , taskID ) , nil }
// BuildCgroupRoot helps build the task cgroup prefix
// Example: /ecs/task-id
BuildCgroupRoot helps build the task cgroup prefix Example : / ecs / task - id