#[Route(path: '/api/_action/scheduled-task/run', name: 'api.action.scheduled-task.run', methods: ['POST'])]
public function runScheduledTasks(): JsonResponse
{ $this->taskScheduler->
queueScheduledTasks();
return new JsonResponse(['message' => 'Success'
]);
} #[Route(path: '/api/_action/scheduled-task/min-run-interval', name: 'api.action.scheduled-task.min-run-interval', methods: ['GET'])]
public function getMinRunInterval(): JsonResponse
{ return new JsonResponse(['minRunInterval' =>
$this->taskScheduler->
getMinRunInterval()]);
}}