Add possibility to run disabled cron
This commit is contained in:
parent
2fc288e53a
commit
552b9d3c33
4 changed files with 12 additions and 10 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue