From bfcc08fd5cdb13596c835754f9d919ebf9bcd3f7 Mon Sep 17 00:00:00 2001 From: Philip Theobald Date: Tue, 2 Apr 2024 11:02:16 -0500 Subject: [PATCH] Update WorkerController.php --- src/Controllers/WorkerController.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Controllers/WorkerController.php b/src/Controllers/WorkerController.php index aa8f086..e5987de 100644 --- a/src/Controllers/WorkerController.php +++ b/src/Controllers/WorkerController.php @@ -42,6 +42,8 @@ public function schedule(Container $laravel, Kernel $kernel, Schedule $schedule, $command = $request->headers->get('X-Aws-Sqsd-Taskname', $this::LARAVEL_SCHEDULE_COMMAND); if ($command != $this::LARAVEL_SCHEDULE_COMMAND) return $this->runSpecificCommand($kernel, $request->headers->get('X-Aws-Sqsd-Taskname')); + $kernel->bootstrap(); + $events = $schedule->dueEvents($laravel); $eventsRan = 0; $messages = [];