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

Appearance settings

[Messenger] Add option to stop the worker after a message failed #34414

Copy link
Copy link
Closed
@micheh

Description

@micheh
Issue body actions

Sometimes a worker handles a message that fails with an error that is hard to recover from. For example, if Doctrine encounters an error at the database level, the Entity Manager will be closed and it is difficult to reset Doctrine to a clean state. By default, all following messages will fail when they try to use the same Entity Manager.

I think it would be a good idea to add an option to the messenger:consume command, which will stop the current worker after a message failed (and the message was potentially dispatched again for a retry). A tool like supervisor could then be used to start a new worker with a clean environment.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.