code: func taskFromInstance(i *twelvefactor.Task) *Task {
  	version := i.Process.Env["EMPIRE_RELEASE"]
  	if version == "" {
  		version = "v0"
  	}
  
  	return &Task{
  		Name:    fmt.Sprintf("%s.%s.%s", version, i.Process.Type, i.ID),
  		Type:    string(i.Process.Type),
  		Host:    Host{ID: i.Host.ID},
  		Command: Command(i.Process.Command),
  		Constraints: Constraints{
  			CPUShare: constraints.CPUShare(i.Process.CPUShares),
  			Memory:   constraints.Memory(i.Process.Memory),
  			Nproc:    constraints.Nproc(i.Process.Nproc),
  		},
  		State:     i.State,
  		UpdatedAt: i.UpdatedAt,
  	}
  }
docs: // taskFromInstance converts a scheduler.Instance into a Task.
  // It pulls some of its data from empire specific environment variables if they have been set.
  // Once ECS supports this data natively, we can stop doing this.