Skip to content

Commit 5134cb8

Browse files
authored
Fix concurrency issue in static content deploy
1 parent 8953613 commit 5134cb8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

app/code/Magento/Deploy/Process/Queue.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,10 @@ private function executePackage(Package $package, string $name, array &$packages
263263
&& !$this->isDeployed($package)
264264
&& ($this->maxProcesses < 2 || (count($this->inProgress) < $this->maxProcesses))
265265
) {
266+
if (!isset($packages[$name])) {
267+
$this->logger->debug('Preventing duplicate execution of package as it is in progress: ' . $package->getPath() . ' (pid: ' . $this->getPid($package) . ')');
268+
return;
269+
}
266270
unset($packages[$name]);
267271
$this->execute($package);
268272
}

0 commit comments

Comments
 (0)