code: func IsTaskDirtyPlacementConstraintsOnly(serviceTaskSpec api.TaskSpec, t *api.Task) bool {
  	// Compare the task placement constraints.
  	if reflect.DeepEqual(serviceTaskSpec.Placement, t.Spec.Placement) {
  		return false
  	}
  
  	// Update spec placement to only the fields
  	// other than the placement constraints in the spec.
  	serviceTaskSpec.Placement = t.Spec.Placement
  	return reflect.DeepEqual(serviceTaskSpec, t.Spec)
  }
docs: // IsTaskDirtyPlacementConstraintsOnly checks if the Placement field alone
  // in the spec has changed.