php-resque icon indicating copy to clipboard operation
php-resque copied to clipboard

No queues found after running a job

Open alfaburro opened this issue 8 years ago • 1 comments

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

alfaburro avatar Jan 12 '18 15:01 alfaburro

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

xelan avatar Jan 15 '18 08:01 xelan

Closing due to lack of feedback, feel free to reopen if necessary.

xelan avatar Jan 04 '23 12:01 xelan