Add possibility to run disabled cron

This commit is contained in:
Julien Tant 2021-04-24 15:06:21 -07:00
parent 2fc288e53a
commit 552b9d3c33
4 changed files with 12 additions and 10 deletions

View file

@ -156,10 +156,6 @@ class ScheduleController extends ClientApiController
*/
public function execute(TriggerScheduleRequest $request, Server $server, Schedule $schedule)
{
if (!$schedule->is_active) {
throw new BadRequestHttpException('Cannot trigger schedule exection for a schedule that is not currently active.');
}
$this->service->handle($schedule, true);
return new JsonResponse([], JsonResponse::HTTP_ACCEPTED);