swooletw / laravel-swoole

High performance HTTP server based on Swoole. Speed up your Laravel or Lumen applications.
MIT License
4.04k stars 390 forks source link

Fix: task worker num output zero always and enable task worker when defined connections in queue.php #503

Closed m3m0r7 closed 2 years ago

m3m0r7 commented 2 years ago

I fixed:

  1. Task Worker Num is output zero always when using php artisan swoole:http infos.
    • because $this->config cannot access to queue.php.
  2. Did not start task worker (always unset the defined value) when defining connections in queue.php because the laravel-swoole refer queue.default only.

In my use-case, I want to set default SQS (AWS), but another way, I want to use swoole's task worker. However, the laravel-swoole did not run task worker because the reason is above.

Arkanius commented 2 years ago

Good job! This issues were never mentioned.

Arkanius commented 2 years ago

I'll apply on the next release

m3m0r7 commented 2 years ago

Thx!

brainiac84 commented 2 years ago

@Arkanius If possible, please make a minor release with these changes. I ran into the same issue