Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[6.x] Reconnect on connection missing to recover horizon #30778

Merged
merged 2 commits into from Dec 6, 2019

Conversation

@taylorotwell
Copy link
Member

taylorotwell commented Dec 6, 2019

This allows phpredis to reconnect using a simple callback in case of a connection problem. This is needed in order for long-running workers like Horizon to recover once Redis is available again.

taylorotwell added 2 commits Dec 6, 2019
@driesvints driesvints changed the title reconnect on connection missing to recover horizon [6.x] Reconnect on connection missing to recover horizon Dec 6, 2019
@taylorotwell taylorotwell merged commit 4834815 into 6.x Dec 6, 2019
4 checks passed
4 checks passed
continuous-integration/styleci/pr The analysis has passed
Details
continuous-integration/styleci/push The analysis has passed
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
continuous-integration/travis-ci/push The Travis CI build passed
Details
@taylorotwell taylorotwell deleted the phpredis-reconnect branch Dec 6, 2019
/**
* Create a new PhpRedis connection.
*
* @param \Redis $client
* @param callable $connector

This comment has been minimized.

Copy link
@GrahamCampbell

GrahamCampbell Dec 6, 2019

Member

callable|null

/**
* The connection creation callback.
*
* @var callable

This comment has been minimized.

Copy link
@GrahamCampbell

GrahamCampbell Dec 6, 2019

Member

callable|null

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.