Skip to content

Exceptions are lost in DeadlineContextDecorator #2400

@Prunkles

Description

@Prunkles

Description

public override async Task Receive(MessageEnvelope envelope)
{
var receiveTask = base.Receive(envelope);
if (receiveTask.IsCompleted)
{
return;
}

If the task returned by base.Receive(envelope) throws an exception synchronously (i.e. immediately, not awaiting anything, e.g. Task.FromException(ex)), then the code above just ignores the exception and returns.

Expected Behavior

The exception should be propagated up to the call stack.

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