new EqualsAnyFilter('status',
[ ScheduledTaskDefinition::STATUS_SCHEDULED,
ScheduledTaskDefinition::STATUS_SKIPPED,
]) );
return $criteria;
} private function queueTask(ScheduledTaskEntity
$taskEntity, Context
$context): void
{ $taskClass =
$taskEntity->
getScheduledTaskClass();
if (!\
is_a($taskClass, ScheduledTask::
class, true
)) { throw new \
RuntimeException(sprintf( 'Tried to schedule "%s", but class does not extend ScheduledTask',
$taskClass ));
} if (!
$taskClass::
shouldRun($this->parameterBag
)) { $this->scheduledTaskRepository->
update([ [