Skip to content

Commit bfcc08f

Browse files
authored
Update WorkerController.php
1 parent 496976e commit bfcc08f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Controllers/WorkerController.php

+2
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ public function schedule(Container $laravel, Kernel $kernel, Schedule $schedule,
4242
$command = $request->headers->get('X-Aws-Sqsd-Taskname', $this::LARAVEL_SCHEDULE_COMMAND);
4343
if ($command != $this::LARAVEL_SCHEDULE_COMMAND) return $this->runSpecificCommand($kernel, $request->headers->get('X-Aws-Sqsd-Taskname'));
4444

45+
$kernel->bootstrap();
46+
4547
$events = $schedule->dueEvents($laravel);
4648
$eventsRan = 0;
4749
$messages = [];

0 commit comments

Comments
 (0)