Skip to content

Commit

Permalink
Added a comment to explain the return on null pid
Browse files Browse the repository at this point in the history
  • Loading branch information
davidalger committed May 2, 2019
1 parent e1525a8 commit 8d0a3d8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/code/Magento/Deploy/Process/Queue.php
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,9 @@ private function isDeployed(Package $package)
if ($this->isCanBeParalleled()) {
if ($package->getState() === null) {
$pid = $this->getPid($package);

// When $pid comes back as null the child process for this package has not yet started; prevents both
// hanging until timeout expires (which was behaviour in 2.2.x) and the type error from strict_types
if ($pid === null) {
return false;
}
Expand Down

0 comments on commit 8d0a3d8

Please sign in to comment.