Skip to content

[Messenger] Implement KeepaliveReceiverInterface in Redis bridge #59360

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

Merged
merged 1 commit into from
Jan 5, 2025

Conversation

HypeMC
Copy link
Contributor

@HypeMC HypeMC commented Jan 4, 2025

Q A
Branch? 7.3
Bug fix? no
New feature? yes
Deprecations? no
Issues -
License MIT

Implements the KeepaliveReceiverInterface in the Redis bridge.

Comment on lines +637 to +644
$this->getRedis()->xclaim(
$this->stream,
$this->group,
$this->consumer,
0,
[$id],
['JUSTID']
);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

XCLAIM will keep resetting the idle time to zero.

@chalasr
Copy link
Member

chalasr commented Jan 5, 2025

/cc @alexander-schranz

@fabpot
Copy link
Member

fabpot commented Jan 5, 2025

Thank you @HypeMC.

@fabpot fabpot merged commit b107be4 into symfony:7.3 Jan 5, 2025
9 of 11 checks passed
@HypeMC HypeMC deleted the redis-keepalive branch January 5, 2025 16:17
javiereguiluz added a commit to symfony/symfony-docs that referenced this pull request Mar 10, 2025
This PR was merged into the 7.3 branch.

Discussion
----------

[Messenger] Keepalive support for Doctrine & Redis

Contains #20736 which should be merged first.

Keepalive support for the Doctrine and Redis transports was added in symfony/symfony#59601 and symfony/symfony#59360, respectively.

Commits
-------

abdd3c9 [Messenger] Keepalive support for Doctrine & Redis
@fabpot fabpot mentioned this pull request May 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants