Skip to content

EnqueueBundle: ResetServicesExtension needs a new message to perform reset #1156

Closed
@djmarland

Description

@djmarland

https://github.com/php-enqueue/enqueue-dev/blob/master/pkg/enqueue-bundle/Consumption/Extension/ResetServicesExtension.php

This extension implements MessageReceivedExtensionInterface so it runs when a new message is received.
When using the FingersCrossed Monolog handler this means that it requires a second message before logs will be output. If there is a time gap before the next message some important logs could be missed.

Would this extension be better off running after a message is processed, such as implementing PostMessageReceivedExtensionInterface instead?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions