-
Notifications
You must be signed in to change notification settings - Fork 440
[consumption] Add ability to change process exit status from within queue consumer extension #766
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
[consumption] Add ability to change process exit status from within queue consumer extension #766
Conversation
greblov
commented
Feb 14, 2019
•
edited by makasim
Loading
edited by makasim
return $this->exitStatus; | ||
} | ||
|
||
public function isExitStatusCaptured(): bool |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no need for this
$consumer->consume(new ChainExtension($extensions)); | ||
|
||
return null; | ||
return $captureExitStatusExtension->getExitStatus(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there is another consume command that has to be adjusted too
you should add a test for command too.
use Enqueue\Consumption\Context\End; | ||
use Enqueue\Consumption\EndExtensionInterface; | ||
|
||
class CaptureExitStatusExtension implements EndExtensionInterface |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ExitStatusExtension
fixes #759 |