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

add pcntl_signal_dispatch after job finish for php extension #485

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

dimanzver
Copy link

Q A
Is bugfix? ✔️
New feature?
Breaks BC?
Fixed issues add pcntl_signal_dispatch after job finish for php extension

@what-the-diff
Copy link

what-the-diff bot commented Apr 27, 2023

PR Summary

  • Package Name Change
    Changed the package name from yiisoft/yii2-queue to dimanzver/yii2-queue to use a different source for the queue component

Copy link
Member

@samdark samdark left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the use-case?

@@ -1,5 +1,5 @@
{
"name": "yiisoft/yii2-queue",
"name": "dimanzver/yii2-queue",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"name": "dimanzver/yii2-queue",
"name": "yiisoft/yii2-queue",

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For handling of stopsignal in docker container. For example, in Kubernetes on deploy

@@ -305,6 +305,10 @@ public function listen()

$this->redeliver($message);

if (function_exists('pcntl_signal_dispatch') && $consumer instanceof \Enqueue\AmqpExt\AmqpConsumer) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why \Enqueue\AmqpExt\AmqpConsumer?
We have interop driver - Interop\Amqp\AmqpConsumer.

@dimanzver
Copy link
Author

Look now - I reworked logic

@samdark samdark requested a review from s1lver June 19, 2023 12:00
@s1lver
Copy link
Member

s1lver commented Jun 19, 2023

No need to change the package name yiisoft/yii2-queue => dimanzver/yii2-queue in composer.json. Please roll back this change

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants