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

Fix missing dispatchWorkerStoppedEvent afterSIGINT orSIGTERM#52123

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

Closed
Chris53897 wants to merge1 commit intosymfony:6.3fromChris53897:6.3-fix-missing-workerstoppedevent
Closed

Fix missing dispatchWorkerStoppedEvent afterSIGINT orSIGTERM#52123

Chris53897 wants to merge1 commit intosymfony:6.3fromChris53897:6.3-fix-missing-workerstoppedevent

Conversation

@Chris53897
Copy link
Contributor

QA
Branch?6.3
Bug fix?yes?
New feature?no
Deprecations?no
LicenseMIT

Related to#52077

In my point of view this Event should be dispatched here.
But maybe there are reasons for not doing this in the past.

I am not sure if bugfix or new feature.

@carsonbotcarsonbot added this to the6.3 milestoneOct 18, 2023
@Chris53897Chris53897 changed the titlefix(messenger): send WorkerStoppedEvent after SIGINT or SIGTERM[Messenger] Fix missing dispatch WorkerStoppedEvent after SIGINT or SIGTERMOct 18, 2023

$this->worker->stop();

$this->eventDispatcher?->dispatch(newWorkerStoppedEvent($this->worker));
Copy link
Member

Choose a reason for hiding this comment

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

This doesn't look necessary to me. The event should already be dispatched at the end of theWorker::run() method.

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Worker::run() is not called in the case of SIGINT or SIGTERM

Copy link
Member

Choose a reason for hiding this comment

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

Are you sure that's still the case after the fix from#52080?

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

i will check that

@OskarStarkOskarStark changed the title[Messenger] Fix missing dispatch WorkerStoppedEvent after SIGINT or SIGTERM[Messenger] Fix missing dispatchWorkerStoppedEvent afterSIGINT orSIGTERMOct 20, 2023
@carsonbotcarsonbot changed the title[Messenger] Fix missing dispatchWorkerStoppedEvent afterSIGINT orSIGTERMFix missing dispatchWorkerStoppedEvent afterSIGINT orSIGTERMOct 20, 2023
@OskarStark
Copy link
Contributor

Any news@Chris53897 ?

@Chris53897
Copy link
ContributorAuthor

Sorry for late response.
Look like the the other PR fixes this.
Last time i checked only 6.3.4 (as i thought it will have the same behaviour. like described in the issue). 6.3.4 does not throw the event.

I will close this PR.

xabbuh reacted with thumbs up emoji

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

Reviewers

@xabbuhxabbuhxabbuh left review comments

Assignees

No one assigned

Projects

None yet

Milestone

6.3

Development

Successfully merging this pull request may close these issues.

5 participants

@Chris53897@OskarStark@xabbuh@carsonbot@Chris8934

[8]ページ先頭

©2009-2025 Movatter.jp