uecode / qpush-bundle

Asynchronous processing for Symfony using Push Queues
qpush-bundle.readthedocs.org
Apache License 2.0
168 stars 54 forks source link

Error when running receive command. #126

Closed vamsiikrishna closed 6 years ago

vamsiikrishna commented 7 years ago

Hi, When I run php app/console uecode:qpush:receive my_queue_name

I am getting


  Warning: Invalid argument supplied for foreach() 
k-k commented 7 years ago

@vamsiikrishna What queue provider are you using? The receive method should, ideally, always be returning an array, empty or otherwise. Curious how this is happening.

tlfbrito commented 7 years ago

@vamsiikrishna I think you are receiving from sync provider. @kmfk Sync provider implementation isn't returning an array:

public function receive(array $options = []) {}