Skip to content

Discard message queue items that have timed out #76

@mdbergmann

Description

@mdbergmann

Sending messages to an actor with timeout will be processed even if the caller receives a 'ask-timeout' condition.

I think it should be possible to include a universal timestamp to the queue item for when the item is obsolete.
When it is obsolete, processing it can be discarded.

Care must be taken to not discard a queue item that has not timed out yet. So we should give it a few seconds more.

IDEA: we could spare the wheel-timer if we would raise the ask-timeout condition only in the above case and at the queue level.
The caveat would be that when an actor is 'asked' with a timeout of say 20 seconds, but the queue item is handled after 30 seconds, then the user would get the timeout just then, but not at 20 seconds as he specified.

Yet, checking at the time of processing the message would be fine still.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions