We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 15b3bc7 commit cbcc650Copy full SHA for cbcc650
src/AsyncTaskStatus.php
@@ -153,7 +153,9 @@ private function findTaskRunnerProcess(): bool
153
$results = [];
154
$encodedTaskID = $this->getEncodedTaskID();
155
exec("pgrep -f id='$encodedTaskID'", $results);
156
- // supposedly there should be only 1 entry, but anyway
+ // we may find multiple records here if we are using timeouts
157
+ // this is because there will be one parent timeout process and another actual child artisan process
158
+ // we want the child artisan process
159
$expectedCmdName = "artisan async:run";
160
foreach ($results as $candidatePID) {
161
$candidatePID = (int) $candidatePID;
0 commit comments