Skip to content

pconnect: Operation now in progress #1881

Description

@kanidjar

Hi,

We are using PHPRedis with Laravel. We push jobs into Redis and our workers pop jobs from it.

Our workers are long running processes which are not supposed to be restarted.

99% of our jobs are popped successfully. However, we sometimes face the following issue when trying to establish the connection, using pconnect:

[2020-11-13 12:52:41] production.ERROR: Operation now in progress {"exception":"[object] (RedisException(code: 0): Operation now in progress at /var/www/html/vendor/illuminate/redis/Connectors/PhpRedisConnector.php:135)
[stacktrace]
#0 /var/www/html/vendor/illuminate/redis/Connectors/PhpRedisConnector.php(135): Redis->pconnect('azure...', '6379', 0, NULL, 0, 0, Array)

I'm seeing this behaviour on

  • OS: Ubuntu-18.04.1
  • Redis: 4.0.14 on Azure (tcp)
  • PHP: 7.4.12
  • phpredis: 5.3.2

Steps to reproduce, backtrace or example script

Very hard to reproduce since it happens only a few times per day (we process around 50K jobs per day).

Any idea of what could go wrong or a way to fix it?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions