spread heavy workload days
This commit is contained in:
parent
85e2c33c31
commit
6dc2ccbb55
2 changed files with 65 additions and 53 deletions
|
|
@ -248,9 +248,6 @@ class CreateSchedule
|
|||
return $workloadPlacement;
|
||||
}
|
||||
|
||||
/**
|
||||
* @throws BadRequestException
|
||||
*/
|
||||
private function resolvedWorkloadPlacement(
|
||||
?WorkloadPlacement $requestedWorkloadPlacement,
|
||||
int $assignmentCount,
|
||||
|
|
@ -267,15 +264,6 @@ class CreateSchedule
|
|||
: WorkloadPlacement::Middle;
|
||||
}
|
||||
|
||||
if (
|
||||
$requestedWorkloadPlacement === WorkloadPlacement::Spread
|
||||
&& ! $isSparse
|
||||
) {
|
||||
throw new BadRequestException(
|
||||
'spread placement requires fewer assignments than days',
|
||||
);
|
||||
}
|
||||
|
||||
return $requestedWorkloadPlacement;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue