Skip to content

Request to add onLastFailure handler or add QueueWorkerConfig to MessageExecution/handler context for custom actions #200

@smndtrl

Description

@smndtrl

Hi,

I came across a use case today where I need to trigger a final action when the last retry fails. E.g. calling a webhook or marking a field in the db as "failed".

My immediate instinct was to keep changes simple and add QueueWorkerConfig to MessageExecution so I can compare rawMessage.read_ct to retry.limit and do it fully inside the handler using the context.

What do you think?

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