Skip to content

PauseThenRequeue does not work #2078

@anton-cher93

Description

@anton-cher93

I try to implement some rate limiter for RabbitMq queue. In case rate limit exceeded RateLimitException have been thrown. I use PauseThenRequeue in HandlerChain but after time my handler does not resume handling messages.
Besides, message duplicates in rabbit queue.

public class OrderHandler
{
    public static void Configure(HandlerChain chain)
    {
        chain.OnException<RpsLimitException>().PauseThenRequeue(10.Seconds());
    }

    public void Handle(Order message)
    {
        // my code here
    }
}

Maybe I need to use another configuration for rate limiter?
Wolverine version: 5.12.1

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