Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[HttpClient][Messenger] addPingWebhookMessage andPingWebhookMessageHandler#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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
fabpot merged 1 commit intosymfony:6.4fromkbond:messenger-ping-webhook
Jul 30, 2023

Conversation

@kbond
Copy link
Member

@kbondkbond commentedMar 25, 2023
edited
Loading

QA
Branch?6.4
Bug fix?no
New feature?yes
Deprecations?no
Ticketsn/a
LicenseMIT
Doc PRtodo

With symfony/scheduler, it could be useful to ping some kind of uptime monitoring service likeohdearapp.

Usage

useSymfony\Component\HttpClient\Messenger\PingWebhookMessage;$bus->dispatch(newPingWebhookMessage('GET','https://example.com'));// simple ping, throws HttpExceptionInterface on 3xx/4xx/5xx$bus->dispatch(newPingWebhookMessage('GET','https://example.com', throw:false));// ping, but does not throw HttpExceptionInterface on 3xx/4xx/5xx$bus->dispatch(newPingWebhookMessage('GET','https://example.com', ['headers' => ['X-FOO =>'bar'],// any HttpClientInterface options]));

TODO:

  • wire up
  • tests

OskarStark reacted with thumbs up emoji
@carsonbotcarsonbot added Status: Needs Review Feature HttpClient Messenger RFCRFC = Request For Comments (proposals about features that you want to be discussed) labelsMar 25, 2023
@carsonbotcarsonbot added this to the6.3 milestoneMar 25, 2023
@carsonbotcarsonbot changed the title[HttpClient][Messenger][RFC] addPingWebhook andPingWebhookHandler[HttpClient][Messenger] addPingWebhook andPingWebhookHandlerMar 25, 2023
@kbond
Copy link
MemberAuthor

Perhaps this would make more sense in the Webhook component? I wasn't sure if this would be in the same scope.

@kbondkbondforce-pushed themessenger-ping-webhook branch from3d34fdd to12e3f2eCompareMarch 27, 2023 15:56
@kbondkbond removed the RFCRFC = Request For Comments (proposals about features that you want to be discussed) labelMar 27, 2023
Copy link
Member

@welcoMatticwelcoMattic left a 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 👍

kbond reacted with thumbs up emoji
@fabpot
Copy link
Member

The main idea here is to make the ping retry-able, isn't it?

@kbond
Copy link
MemberAuthor

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.

@ro0NL
Copy link
Contributor

all messages are already retry-ablehttps://symfony.com/doc/current/messenger.html#retries-failures

@kbond
Copy link
MemberAuthor

all messages are already retry-ablehttps://symfony.com/doc/current/messenger.html#retries-failures

The scheduler transport does not support retries.

@nicolas-grekasnicolas-grekas modified the milestones:6.3,6.4May 23, 2023
Copy link
Member

@nicolas-grekasnicolas-grekas left a 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.

@nicolas-grekas
Copy link
Member

Please improve the PR description a bit so that it's easier to start the doc. 🙏

@nicolas-grekas
Copy link
Member

(rebase needed + comments pending)

@kbond
Copy link
MemberAuthor

Yep, this is on my list!

@kbondkbondforce-pushed themessenger-ping-webhook branch from12e3f2e toc6a4885CompareJuly 28, 2023 12:00
@kbond
Copy link
MemberAuthor

kbond commentedJul 28, 2023
edited
Loading

Comments addressed, I think this is ready.

@kbondkbond changed the title[HttpClient][Messenger] addPingWebhook andPingWebhookHandler[HttpClient][Messenger] addPingWebhookMessage andPingWebhookMessageHandlerJul 28, 2023
@kbondkbondforce-pushed themessenger-ping-webhook branch from8629503 to3fc4175CompareJuly 28, 2023 13:46
@fabpotfabpotforce-pushed themessenger-ping-webhook branch from43a9c4c tof0644d9CompareJuly 30, 2023 09:34
@fabpot
Copy link
Member

Thank you@kbond.

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

Reviewers

@fabpotfabpotfabpot approved these changes

@nicolas-grekasnicolas-grekasnicolas-grekas approved these changes

@welcoMatticwelcoMatticwelcoMattic approved these changes

+1 more reviewer

@ro0NLro0NLro0NL left review comments

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Projects

None yet

Milestone

6.4

Development

Successfully merging this pull request may close these issues.

6 participants

@kbond@fabpot@ro0NL@nicolas-grekas@welcoMattic@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp