Skip to content
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

[Messenger] [Redis] Fixed problem where worker stops handling messages on first empty message #48837

Conversation

jvmanji
Copy link
Contributor

@jvmanji jvmanji commented Dec 31, 2022

Q A
Branch? 5.4
Bug fix? yes
New feature? no
Deprecations? no
Tickets Fix #48166
License MIT
Doc PR n/a

Fixed problem where worker stops handling messages on first empty message.

@carsonbot
Copy link

Hey!

I see that this is your first PR. That is great! Welcome!

Symfony has a contribution guide which I suggest you to read.

In short:

  • Always add tests
  • Keep backward compatibility (see https://symfony.com/bc).
  • Bug fixes must be submitted against the lowest maintained branch where they apply (see https://symfony.com/releases)
  • Features and deprecations must be submitted against the 6.3 branch.

Review the GitHub status checks of your pull request and try to solve the reported issues. If some tests are failing, try to see if they are failing because of this change.

When two Symfony core team members approve this change, it will be merged and you will become an official Symfony contributor!
If this PR is merged in a lower version branch, it will be merged up to all maintained branches within a few days.

I am going to sit back now and wait for the reviews.

Cheers!

Carsonbot

@carsonbot carsonbot changed the title [Messenger][Redis] fixes #48166 [Messenger] [Redis] fixes #48166 Dec 31, 2022
Copy link
Contributor

@OskarStark OskarStark left a comment

Choose a reason for hiding this comment

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

Please associate your commiter email with your Github account

@nicolas-grekas nicolas-grekas changed the title [Messenger] [Redis] fixes #48166 [Messenger] [Redis] Fixed problem where worker stops handling messages on first empty message Jan 11, 2023
@nicolas-grekas nicolas-grekas force-pushed the fix/48166-MESSENGER-REDIS-worker-stops-handling-messages-on-first-empty-message branch from 38c9b3a to ab0f1d4 Compare January 11, 2023 11:18
Copy link
Member

@nicolas-grekas nicolas-grekas left a comment

Choose a reason for hiding this comment

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

I've rebased + squashed your PR to have a clean git history. Don't forget to fetch before working again on the patch if needed.
About the patch itself, I don't know the topic well enough. Anyone else willing to review in depth?

@chalasr
Copy link
Member

chalasr commented Jan 11, 2023

Will do yes. Ping @alexander-schranz also since you provided some guidance in the linked issue (no hurry)

@Gregory-Gerard
Copy link

Is there anything I (or anyone else) can do to help with this PR?

I'm having the same problem, and this problem is also present in case of an invalid message (can't decode a JSON for example), it should never happen but I have an external system that can push in a stream read by Symfony Messenger, so it would be better if the transport to expect the possibility of an invalid or empty message and rejects this message.

@tourze
Copy link
Contributor

tourze commented Mar 7, 2023

Same problem, any update?

@nicolas-grekas nicolas-grekas force-pushed the fix/48166-MESSENGER-REDIS-worker-stops-handling-messages-on-first-empty-message branch from ab0f1d4 to ce103f1 Compare April 18, 2023 09:57
Copy link
Member

@nicolas-grekas nicolas-grekas left a comment

Choose a reason for hiding this comment

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

I updated the PR to use reject.

@nicolas-grekas
Copy link
Member

Thank you @jvmanji.

@nicolas-grekas nicolas-grekas merged commit ba49bda into symfony:5.4 Apr 18, 2023
9 checks passed
@fabpot fabpot mentioned this pull request Apr 28, 2023
@fabpot fabpot mentioned this pull request Apr 28, 2023
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.

None yet

9 participants