.setProduction(production);
if (dedicated.isPresent()) {
task.addToConstraints(new Constraint(
ConfigurationManager.DEDICATED_ATTRIBUTE,
TaskConstraint.value(new ValueConstraint(false, ImmutableSet.of(dedicated.get())))));
}
return IScheduledTask.build(new ScheduledTask()
.setStatus(status)
.setAssignedTask(