Skip to content

Commit

Permalink
Amend comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Vectorial1024 committed Jan 25, 2025
1 parent 15b3bc7 commit cbcc650
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/AsyncTaskStatus.php
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,9 @@ private function findTaskRunnerProcess(): bool
$results = [];
$encodedTaskID = $this->getEncodedTaskID();
exec("pgrep -f id='$encodedTaskID'", $results);
// supposedly there should be only 1 entry, but anyway
// we may find multiple records here if we are using timeouts
// this is because there will be one parent timeout process and another actual child artisan process
// we want the child artisan process
$expectedCmdName = "artisan async:run";
foreach ($results as $candidatePID) {
$candidatePID = (int) $candidatePID;
Expand Down

0 comments on commit cbcc650

Please sign in to comment.