yii2-queue
yii2-queue copied to clipboard
Symfony: Unable to launch a new process
What steps will reproduce the problem?
Run queue by screen with "queue/listen --verbose"
What's expected?
The queue keeps run smooth
What do you get instead?
Symphony exception

Additional info
| Q | A |
|---|---|
| Yii version: | 2.0.38 |
| PHP version: | 7.2 |
| Operating system: | Linux |
Thanks for posting in our issue tracker. In order to properly assist you, we need additional information:
- When does the issue occur?
- What do you see?
- What was the expected result?
- Can you supply us with a stacktrace? (optional)
- Do you have exact code to reproduce it? Maybe a PHPUnit tests that fails? (optional)
Thanks!
This is an automated comment, triggered by adding the label status:need more info.
When does the issue occur?
- This issue occurred seem per ~2 months on my PROD, I tried to reproduce but no hope
What do you see?
- The queue can't continue to execute the new job, it must be restarted
- I thought it related to memory, garbage collector, or something like that
What was the expected result?
- Queue continue to execute the new job
Can you supply us with a stacktrace? (optional)
- I can't, this image is all I got
Do you have exact code to reproduce it? Maybe a PHPUnit tests that fails? (optional)
- Not modify anything about the queue, just implement RetryableJobInterface
This usually is a result of some kind of server limitation (limit on number of opened processes or files) and there is nothing that this library can do with that. Unfortunately, it looks likeProcess hides real message which may explain what actual problem is. You could try to remove @ char from this line and check error message from proc_open() - it should be more useful than exception thrown by Process. You may need to restart worker process after this change.