-
-
Notifications
You must be signed in to change notification settings - Fork 136
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
Long running closure blocks other tasks #260
Comments
Did you mean, run long running task in one terminal, then try to run Crunz again with another terminal and other tasks from long running file will not be run? |
No I mean that there'd be a single cron running with multiple tasks, one of those tasks will run forever, e.g. example above with infinite loop. The use case is to have an AWS SQS receive message task looping and being spawned by a crunz scheduler. In the example above, if I keep the first task looping, the second task never executes. |
Sorry, I mean "is it a correct way to reproduce the issue?", but looks like it is. |
Hey @esetnik, could you run Crunz with |
Interesting issue, seems that there were two errors (both fixed). First, as described in #264, version Thanks @esetnik. |
Thank you for taking the time to look into this issue for me. I will update you once I get a chance to test this out. The solution seems reasonable and explains the odd behavior I was seeing. |
@esetnik what about this issue? Could it be closed? |
@PabloKowalczyk I apologize for the delay in getting back to you. This issue appears to be fixed now. Although it should be noted that a long running task which outputs to the console will eventually run out of memory due to #152 as far as I know. |
Crunz version: x.y.z
v2.0.2
PHP version: x.y.z
v7.3.11
Operating system type and version:
docker php:7.3-fpm
Description
Running a long running task in closure blocks other tasks from executing.
How to reproduce
LongRunningTasks.php
Possible Solution
The lavary implementation looks similar to the symphony process implementation for running processes asynchronously so I'm not sure why it doesn't work.
https://symfony.com/doc/current/components/process.html
Additional context
The text was updated successfully, but these errors were encountered: