Skip to content

[Messenger] DeduplicateStamp cannot be serialized (if certain lock stores are used) #60667

@kbond

Description

@kbond

Symfony version(s) affected

7.3

Description

The key cannot be serialized.

Exception is thrown when serializing (using the PHP serializer) DeduplicateStamp because some lock stores (ie flock) prevent the Key from being serialized.

Ref: zenstruck/messenger-test#95

(#60659 also has issues with DeduplicateStamp but with the symfony/serializer)

How to reproduce

When using the PHP messenger serializer, a flock lock store, send an async message with a DeduplicateStamp.

Possible Solution

No response

Additional Context

No response

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