laravel-scout-array-driver icon indicating copy to clipboard operation
laravel-scout-array-driver copied to clipboard

Not working if queue is configured

Open artem-schander opened this issue 1 year ago • 1 comments
trafficstars

Thank you for the package. Its nice to have a possibility to test the index. However, it took me a white to find the reason it wont work in my case. I configured scout to use a specific queue. Not just a boolean value.

'queue' => [
    'connection' => env('SCOUT_QUEUE_CONNECTION', 'redis'),
    'queue' => env('SCOUT_QUEUE_NAME', 'indexing'),
],

Considering the setting must be something like 'queue' => env('SCOUT_QUEUE', false) there is no nice way to use env vars to change it for testing. Besides that, it would be worth mentioning in the readme that the queue setting can cause issues.

artem-schander avatar Oct 23 '24 08:10 artem-schander

for my scenario this phpunit.xml env entries do the trick:

<env name="SCOUT_QUEUE_CONNECTION" value="null"/>
<env name="SCOUT_QUEUE_NAME" value="null"/>

Maybe it would make sense to make this package ignore the queue config all together?

Feel free to close this issue without any comment.

artem-schander avatar Oct 23 '24 08:10 artem-schander