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

[Scheduler] AddFailureEvent#52087

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.4fromalli83:scheduler-add-failure-event
Oct 17, 2023

Conversation

@alli83
Copy link
Contributor

QA
Branch?6.4
Bug fix?no
New feature?yes
Deprecations?no
Tickets
LicenseMIT

Following PR#51805, It would be interesting to add afailureEvent allowing you, for instance, to remove the recurring message, depending on the error caught.

dunglas reacted with thumbs up emoji
$this->dispatcher->dispatch(newPostRunEvent($generator->getSchedule(),$context,$message));
$this->dispatcher->dispatch(newPostRunEvent($generator->getSchedule(),$context,$message));
}catch (\Throwable$error) {
$this->dispatcher->dispatch(newFailureEvent($generator->getSchedule(),$context,$message,$error));
Copy link
Member

Choose a reason for hiding this comment

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

We need to rethrow the exception, right?
And maybe the FailureEvent can have a way to ignore the error?

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

yes indeed. Maybe I could add ashouldIgnore like the one we already have for theWorkerMessageReceivedEvent

@OskarStarkOskarStark changed the title[Scheduler] add failure event[Scheduler] AddFailureEventOct 17, 2023
@alli83alli83force-pushed thescheduler-add-failure-event branch 2 times, most recently from329592e toe39d744CompareOctober 17, 2023 08:43
@alli83alli83force-pushed thescheduler-add-failure-event branch frome39d744 to891a404CompareOctober 17, 2023 08:43
@fabpot
Copy link
Member

Thank you@alli83.

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

Reviewers

@fabpotfabpotfabpot approved these changes

@kbondkbondAwaiting requested review from kbondkbond is a code owner

Assignees

No one assigned

Projects

None yet

Milestone

6.4

Development

Successfully merging this pull request may close these issues.

3 participants

@alli83@fabpot@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp