Adjust output messages for binaries and releases processing

This commit is contained in:
DariusIII
2019-03-28 14:07:22 +01:00
parent 5a5bbe2345
commit 46b5a55475
2 changed files with 11 additions and 4 deletions
+10 -4
View File
@@ -428,15 +428,18 @@ class Forking
$pool = Pool::create()->concurrency($this->maxProcesses);
$maxWork = \count($this->work);
$this->processWork();
foreach ($this->work as $group) {
$pool->add(function () use ($group) {
$this->_executeCommand(PHP_BINARY.' misc/update/update_binaries.php '.$group->name.' '.$group->max);
})->then(function () use ($group) {
$this->colorCli->primary('Updated group '.$group->name);
})->then(function () use ($group, $maxWork) {
$this->colorCli->primary('Task #'.$maxWork.' Updated group '.$group->name);
})->catch(function (\Throwable $exception) {
echo $exception->getMessage();
});
--$maxWork;
}
$pool->wait();
@@ -596,17 +599,20 @@ class Forking
}
}
$maxWork = \count($this->work);
$pool = Pool::create()->concurrency($this->maxProcesses);
$this->processWork();
foreach ($uGroups as $group) {
$pool->add(function () use ($group) {
$this->_executeCommand($this->dnr_path.'releases '.$group['id'].'"');
})->then(function () {
$this->colorCli->primary('Finished performing release processing task');
})->then(function () use ($maxWork) {
$this->colorCli->primary('Finished performing release processing task #'.$maxWork);
})->catch(function (\Throwable $exception) {
// Handle exception
});
--$maxWork;
}
$pool->wait();
+1
View File
@@ -1,4 +1,5 @@
2019-03-28 DariusIII
* Chg: Adjust output messages for binaries and releases processing
* Chg: Revert all but PPA to older behaviour
2019-03-27 DariusIII
* Chg: Remove $groups assignment from queries and use $this->work