Quering the database causes never ending tasks #60
Unanswered
antoniolore
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello!
I'm trying to use this library in order to speed up record processing.
I'm working on a Laravel Command (v11, PHP 8.3). The Laravel command need to query a table on a database. For each record I need to do some processing. I would like to speed up the whole process by using spatie/fork. However, something is causing task to not be finished. I have to kill the process manually.
Environment:
I created a little snippet as follow:
when
$pagamenti = $pagamenti->get();is commented out everything works fine and the command exits with no errors and the$resultshas the intended results.If I uncomment
$pagamenti = $pagamenti->get();the command randomly hangs with no reason.Any clue?
Beta Was this translation helpful? Give feedback.
All reactions