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

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.

@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
@taylorotwell taylorotwell deleted the phpredis-reconnect branch December 6, 2019 16:56
/**
* Create a new PhpRedis connection.
*
* @param \Redis $client
* @param callable $connector
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

callable|null

/**
* The connection creation callback.
*
* @var callable
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

callable|null

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants