Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

On exception Context is not set #259

Closed
pavkatar opened this issue Nov 9, 2017 · 1 comment · Fixed by #264
Closed

On exception Context is not set #259

pavkatar opened this issue Nov 9, 2017 · 1 comment · Fixed by #264
Labels

Comments

@pavkatar
Copy link

pavkatar commented Nov 9, 2017

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+)

@makasim makasim added the bug label Nov 9, 2017
@makasim
Copy link
Member

makasim commented Nov 9, 2017

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
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants