Skip to content

Commit cbcc650

Browse files
committed
Amend comments
1 parent 15b3bc7 commit cbcc650

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/AsyncTaskStatus.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,9 @@ private function findTaskRunnerProcess(): bool
153153
$results = [];
154154
$encodedTaskID = $this->getEncodedTaskID();
155155
exec("pgrep -f id='$encodedTaskID'", $results);
156-
// supposedly there should be only 1 entry, but anyway
156+
// 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
157159
$expectedCmdName = "artisan async:run";
158160
foreach ($results as $candidatePID) {
159161
$candidatePID = (int) $candidatePID;

0 commit comments

Comments
 (0)