No queues found after running a job
Hi, our worker looses the default queue sometimes. From the worker.log:
** Pop blocking with timeout of 10 seconds
** Pop blocking with timeout of 10 seconds
** Running job default:App\Lib\ResqueWorkerNotify#e35e00df160eaacae41059([846,6])
[Predis\Connection\ConnectionException]
Error while reading line from the server [tcp://redis.internal:6379]
worker:start [-Q|--queue [QUEUE]] [-b|--blocking [BLOCKING]] [-i|--interval [INTERVAL]] [-t|--timeout [TIMEOUT]] [-m|--memory [MEMORY]] [-P|--pid [PID]] [-c|--config [CONFIG]] [-I|--include [INCLUDE]] [-H|--host [HOST]] [-p|--port [PORT]] [--scheme SCHEME] [--namespace NAMESPACE] [--password [PASSWORD]] [--log LOG] [-e|--events]
Notice Error: Undefined index: status in [/app/app/vendor/mjphaynes/php-resque/src/Resque/Job.php, line 561]
** Job default:App\Lib\ResqueWorkerNotify#e35e00df160eaacae41059([846,6]) exited with code 1
Notice Error: Undefined index: worker in [/app/app/vendor/mjphaynes/php-resque/src/Resque/Job.php, line 440]
Notice Error: Undefined index: started in [/app/app/vendor/mjphaynes/php-resque/src/Resque/Job.php, line 441]
Notice Error: Undefined index: finished in [/app/app/vendor/mjphaynes/php-resque/src/Resque/Job.php, line 442]
Notice Error: Undefined index: output in [/app/app/vendor/mjphaynes/php-resque/src/Resque/Job.php, line 443]
Notice Error: Undefined index: exception in [/app/app/vendor/mjphaynes/php-resque/src/Resque/Job.php, line 444]
Notice Error: Undefined index: status in [/app/app/vendor/mjphaynes/php-resque/src/Resque/Job.php, line 561]
** No queues found, waiting for 10 seconds
** No queues found, waiting for 10 seconds
** No queues found, waiting for 10 seconds
** No queues found, waiting for 10 seconds
** No queues found, waiting for 10 seconds
** No queues found, waiting for 10 seconds
Hi @mstra001!
Thank you for reporting your issue. Apparently there is a problem with your Redis connection, which causes the worker to fail. The error message seems to indicate an interruption of the TCP communication with the Redis server.
Could you please provide more information about your setup?
- Version of
php-resque - Version of
redis-server - Environment
- Network setup
You could try to measure and improve the stability and performance of your Redis setup for example with memtier_benchmark. Disclaimer: I haven't used that tool yet, but based on the description you should be able to benchmark your Redis setup.
Best regards Andreas
Closing due to lack of feedback, feel free to reopen if necessary.