Open TwassistantKeith opened 8 years ago
Actually, I get this error now:
[2016-08-17 10:39:36] production.ERROR: exception 'ErrorException' with message 'Argument 1 passed to Dusterio\PlainSqs\Integrations\LaravelServiceProvider::Dusterio\PlainSqs\Integrations\{closure}() must be an instance of Illuminate\Queue\Events\JobProcessed, string given' in /home/x/vendor/dusterio/laravel-plain-sqs/src/Integrations/LaravelServiceProvider.php:27
I believe this is a problem due to the different between Laravel 5.1 and 5.2. I am using 5.1 and so the Queue::after function looks different:
Queue::after(function ($connection, $job, $data) {
vs 5.2:
Queue::after(function (JobProcessed $event) {
I've changed my function to:
Queue::after(function ($connection, $job, $data) {
$job->delete();
});
And everything is now processing correctly.
Thanks for finding and pointing this out! Since 5.3 is coming out soon as well, I will need to add some version checks in the Laravel/Lumen service provider it seems – to support different versions. I will include this 5.1 fix as well
Hey there, I am trying to handle XML data in the body of a payload from the queue:
I believe this could be handled by adding XML detection to your modifyPayload function, something along these lines:
I just hacked this together so I'm sure there's a better way, but it appears to work properly. What do you think?