Skip to content

Mark undeliverable message as tried #312

Description

@thomasLeMeur

On worker OOM, Remoulade thinks message has not been tried.
So, Retries middleware won't tag it and user max_retries argument won't be respected.

Idea:
Use RabbitMQ 'redelivered' tag to handle this case.
If tag is set to True, start to count the number of tries for a given message with Redis.
If message successes, remove the Redis key.
If counter reaches a limit (max_retries value ?), raise an error

See https://www.rabbitmq.com/consumers.html#message-properties

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions