From 6444bf1e2a9f29b1ed3ba5194ee62129efef3232 Mon Sep 17 00:00:00 2001 From: Timmy Lindholm <74464421+timmylindh@users.noreply.github.com> Date: Fri, 15 Mar 2024 16:46:06 +0100 Subject: [PATCH 1/9] Update BindsWorker.php --- src/Integrations/BindsWorker.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Integrations/BindsWorker.php b/src/Integrations/BindsWorker.php index a2aa98d..a852217 100644 --- a/src/Integrations/BindsWorker.php +++ b/src/Integrations/BindsWorker.php @@ -22,7 +22,7 @@ trait BindsWorker protected $workerImplementations = [ '5\.[345678]\.\d+' => Laravel53Worker::class, '[67]\.\d+\.\d+' => Laravel6Worker::class, - '([89]|10)\.\d+\.\d+' => Laravel8Worker::class + '([89]|10|11)\.\d+\.\d+' => Laravel8Worker::class ]; /** From 63901f19f161ad773b602af238358d58d0482c23 Mon Sep 17 00:00:00 2001 From: Timmy Lindholm <74464421+timmylindh@users.noreply.github.com> Date: Fri, 15 Mar 2024 17:53:28 +0100 Subject: [PATCH 2/9] 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 = []; From dce8ccd59d7ff8eee5ed37fbe5d133624c0510b7 Mon Sep 17 00:00:00 2001 From: Timmy Lindholm <74464421+timmylindh@users.noreply.github.com> Date: Fri, 15 Mar 2024 18:08:21 +0100 Subject: [PATCH 3/9] Update composer.json --- composer.json | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 3d36668..5b966f7 100644 --- a/composer.json +++ b/composer.json @@ -36,5 +36,12 @@ "psr-4": { "Dusterio\\AwsWorker\\": "src/" } - } + }, + "extra": { + "laravel": { + "providers": [ + "Dusterio\AwsWorker\Integrations\LaravelServiceProvider" + ] + } + }, } From 3fd083a327cf6bdcb51d57da315a255259170ad7 Mon Sep 17 00:00:00 2001 From: Timmy Lindholm <74464421+timmylindh@users.noreply.github.com> Date: Fri, 15 Mar 2024 18:10:10 +0100 Subject: [PATCH 4/9] Update composer.json --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 5b966f7..3b0ef4f 100644 --- a/composer.json +++ b/composer.json @@ -40,7 +40,7 @@ "extra": { "laravel": { "providers": [ - "Dusterio\AwsWorker\Integrations\LaravelServiceProvider" + "Dusterio\\AwsWorker\\Integrations\\LaravelServiceProvider" ] } }, From d7efb410e5e507a7b8a8635a76b735878b1020fa Mon Sep 17 00:00:00 2001 From: Timmy Lindholm <74464421+timmylindh@users.noreply.github.com> Date: Fri, 15 Mar 2024 18:10:36 +0100 Subject: [PATCH 5/9] Update composer.json --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 3b0ef4f..b3684ed 100644 --- a/composer.json +++ b/composer.json @@ -43,5 +43,5 @@ "Dusterio\\AwsWorker\\Integrations\\LaravelServiceProvider" ] } - }, + } } From 91cadb17658a6a1bbee57d516a961bf7172b56d7 Mon Sep 17 00:00:00 2001 From: Timmy Lindholm <74464421+timmylindh@users.noreply.github.com> Date: Sat, 16 Mar 2024 04:46:53 +0100 Subject: [PATCH 6/9] Update composer.json --- composer.json | 7 ------- 1 file changed, 7 deletions(-) diff --git a/composer.json b/composer.json index b3684ed..3d36668 100644 --- a/composer.json +++ b/composer.json @@ -36,12 +36,5 @@ "psr-4": { "Dusterio\\AwsWorker\\": "src/" } - }, - "extra": { - "laravel": { - "providers": [ - "Dusterio\\AwsWorker\\Integrations\\LaravelServiceProvider" - ] - } } } From 706172d23792235d66ad4927511f594fa3ee0d88 Mon Sep 17 00:00:00 2001 From: Timmy Lindholm <74464421+timmylindh@users.noreply.github.com> Date: Sat, 16 Mar 2024 04:48:38 +0100 Subject: [PATCH 7/9] Update composer.json --- composer.json | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/composer.json b/composer.json index 3d36668..b3684ed 100644 --- a/composer.json +++ b/composer.json @@ -36,5 +36,12 @@ "psr-4": { "Dusterio\\AwsWorker\\": "src/" } + }, + "extra": { + "laravel": { + "providers": [ + "Dusterio\\AwsWorker\\Integrations\\LaravelServiceProvider" + ] + } } } From 55750152a9e384254bb8286bc7f67c490271f92f Mon Sep 17 00:00:00 2001 From: Timmy Lindholm <74464421+timmylindh@users.noreply.github.com> Date: Sat, 16 Mar 2024 04:51:26 +0100 Subject: [PATCH 8/9] Update composer.json --- composer.json | 7 ------- 1 file changed, 7 deletions(-) diff --git a/composer.json b/composer.json index b3684ed..3d36668 100644 --- a/composer.json +++ b/composer.json @@ -36,12 +36,5 @@ "psr-4": { "Dusterio\\AwsWorker\\": "src/" } - }, - "extra": { - "laravel": { - "providers": [ - "Dusterio\\AwsWorker\\Integrations\\LaravelServiceProvider" - ] - } } } From 59cc0c14a5be8d45c982c967ae66ee468156d701 Mon Sep 17 00:00:00 2001 From: Timmy Lindholm <74464421+timmylindh@users.noreply.github.com> Date: Sat, 16 Mar 2024 04:52:01 +0100 Subject: [PATCH 9/9] Update WorkerController.php --- src/Controllers/WorkerController.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/Controllers/WorkerController.php b/src/Controllers/WorkerController.php index e5987de..aa8f086 100644 --- a/src/Controllers/WorkerController.php +++ b/src/Controllers/WorkerController.php @@ -42,8 +42,6 @@ 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 = [];