-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
3 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
eadfb94
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dusterio does the Sqs/Queue.php file need to be updated as well for Laravel 8?
as in this pull request from the @jason-klein:
https://github.com/dusterio/laravel-plain-sqs/pull/47/files
eadfb94
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nickturrietta it's already updated and tagged :) composer update should work
eadfb94
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dusterio Your package does install in Laravel 8, but is not processing Jobs correctly due to the issue @nickturrietta mentioned above.
Line 75 in the Queue.php file also needs to be updated to reflect the current Laravel Version. Laravel returns a Container Version that matches the current Laravel Version. The contents of
$this->container->version()
for Laravel 8.9.0 are currentlyContainer Version [8.9.0]
.See my suggested edit in PR #47: src/Sqs/Queue.php
Thanks for continuing to maintain this package! 😄
eadfb94
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jason-klein ops, you are right! interestingly it worked fine for me - I'm using this package at one of my products
I'm re-opening and merging your PR now, thanks!
eadfb94
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dusterio Thanks! For future reference, here's the error we were receiving when we attempted to process a Job from a Plain SQS message without the update I made to
Queue.php
.Argument 3 passed to Illuminate\Queue\Jobs\SqsJob::__construct() must be of the type array, string given, called in vendor/dusterio/laravel-plain-sqs/src/Sqs/Queue.php on line 80 {"exception":"[object] (TypeError(code: 0): Argument 3 passed to Illuminate\\Queue\\Jobs\\SqsJob::__construct() must be of the type array, string given, called in vendor/dusterio/laravel-plain-sqs/src/Sqs/Queue.php on line 80 at vendor/laravel/framework/src/Illuminate/Queue/Jobs/SqsJob.php:35)
We've been successfully running PR #47 in production since Sept 10, 2020. We process thousands of Jobs from SQS per day, including both standard Laravel Jobs from Laravel SQS messages and other notifications from Plain SQS messages (e.g. S3 notifications to SQS) so users shouldn't have any issues with our PR.
eadfb94
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome! Thanks @jason-klein! And @dusterio for this most-excellent package! 😃