Skip to content

On exception Context is not set  #259

Closed

Description

@pavkatar

On exception thrown from one of the consumers, the Context, which is sent to all extensions is not populated with a message, queue, consumer, etc.

$context = new Context($this->psrContext);
$context->setLogger($logger);
$context->setPsrQueue($consumer->getQueue());
$context->setPsrConsumer($consumer);
$context->setPsrProcessor($currentProcessor);
$context->setPsrMessage($message);

This is code is in the callback, but when the callback exit, the context sent to $extension->onInterrupted() is empty. QueueConsumer.php (line: 240+)

Activity

  1. makasim commented on Nov 9, 2017

    @makasim
    Member

    the message is not set if this condition is true.

    it is definitely a bug

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions