-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
[HttpClient][Messenger] add PingWebhookMessage and PingWebhookMessageHandler
#49815
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
Conversation
PingWebhook and PingWebhookHandlerPingWebhook and PingWebhookHandler
|
Perhaps this would make more sense in the Webhook component? I wasn't sure if this would be in the same scope. |
3d34fdd to
12e3f2e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think HttpClient is the good place for this 👍
|
The main idea here is to make the ping retry-able, isn't it? |
You mean the logic for catching/throwing exceptions? The main idea was to know if a ping failed. |
|
all messages are already retry-able https://symfony.com/doc/current/messenger.html#retries-failures |
The scheduler transport does not support retries. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM after minor changes. Thanks for the PR.
|
Please improve the PR description a bit so that it's easier to start the doc. 🙏 |
|
(rebase needed + comments pending) |
|
Yep, this is on my list! |
12e3f2e to
c6a4885
Compare
|
Comments addressed, I think this is ready. |
PingWebhook and PingWebhookHandlerPingWebhookMessage and PingWebhookMessageHandler
8629503 to
3fc4175
Compare
src/Symfony/Component/HttpClient/Messenger/PingWebhookMessageHandler.php
Outdated
Show resolved
Hide resolved
43a9c4c to
f0644d9
Compare
|
Thank you @kbond. |
With symfony/scheduler, it could be useful to ping some kind of uptime monitoring service like ohdearapp.
Usage
TODO: