laravel-elasticbeanstalk-queue-worker icon indicating copy to clipboard operation
laravel-elasticbeanstalk-queue-worker copied to clipboard

Not working with laravel 9: No queue.

Open Teglgaard opened this issue 3 years ago • 1 comments
trafficstars

Hi

Testing lead me to that command can not be executed since command today does not include queue name.

Line 9 in parse config thus has to get the queue changed. I have removed below line which causes it to work again. $connection$queueVal

Teglgaard avatar Oct 19 '22 14:10 Teglgaard

Hi @Teglgaard, can you provide your env value for QUEUE_CONNECTION and the queue config as described in https://github.com/FoxxMD/laravel-elasticbeanstalk-queue-worker#add-queues? For the it to be working properly you need at least these 3 environment variables set (I use database queue connection as example, and AnyNameYouLike as queue name):

  • IS_WORKER = true
  • QUEUE_CONNECTION = database
  • queueAnyNameYouLike = database

Then optionally you can add more variables to configure your queue:

  • AnyNameYouLikeTries = 10
  • AnyNameYouLikeSleep = 4
  • AnyNameYouLikeNumProcs = 2
  • AnyNameYouLikeStartSecs = 2
  • AnyNameYouLikeDelay = 1

MbahDjoe avatar Oct 20 '22 02:10 MbahDjoe