Updated Rector to commit 0d6800eea6b74352bd2dd16d7a2254c9398e4e98

0d6800eea6 Add sleep after processPool->quitAll() to give time for all child processes to terminate (#4280)
This commit is contained in:
Tomas Votruba 2023-06-19 07:27:13 +00:00
parent 852d73ba40
commit 8bf7af2ff0
5 changed files with 16 additions and 12 deletions

View File

@ -104,6 +104,10 @@ final class ParallelFileProcessor
++$systemErrorsCount;
$reachedSystemErrorsCountLimit = \true;
$this->processPool->quitAll();
// This sleep has to be here, because event though we have called $this->processPool->quitAll(),
// it takes some time for the child processes to actually die, during which they can still write to cache
// @see https://github.com/rectorphp/rector-src/pull/3834/files#r1231696531
\sleep(1);
};
$timeoutInSeconds = $this->parameterProvider->provideIntParameter(Option::PARALLEL_JOB_TIMEOUT_IN_SECONDS);
for ($i = 0; $i < $numberOfProcesses; ++$i) {

View File

@ -19,12 +19,12 @@ final class VersionResolver
* @api
* @var string
*/
public const PACKAGE_VERSION = 'ad41e8a6cf9c319bc25ef3d6b6b47643edc76499';
public const PACKAGE_VERSION = '0d6800eea6b74352bd2dd16d7a2254c9398e4e98';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2023-06-18 21:24:46';
public const RELEASE_DATE = '2023-06-19 08:23:04';
/**
* @var int
*/

2
vendor/autoload.php vendored
View File

@ -22,4 +22,4 @@ if (PHP_VERSION_ID < 50600) {
require_once __DIR__ . '/composer/autoload_real.php';
return ComposerAutoloaderInita23263c676bf46f912b30aa811ee8082::getLoader();
return ComposerAutoloaderInit1d7cf0512d1a9abcf600e788fc23ce4a::getLoader();

View File

@ -2,7 +2,7 @@
// autoload_real.php @generated by Composer
class ComposerAutoloaderInita23263c676bf46f912b30aa811ee8082
class ComposerAutoloaderInit1d7cf0512d1a9abcf600e788fc23ce4a
{
private static $loader;
@ -22,17 +22,17 @@ class ComposerAutoloaderInita23263c676bf46f912b30aa811ee8082
return self::$loader;
}
spl_autoload_register(array('ComposerAutoloaderInita23263c676bf46f912b30aa811ee8082', 'loadClassLoader'), true, true);
spl_autoload_register(array('ComposerAutoloaderInit1d7cf0512d1a9abcf600e788fc23ce4a', 'loadClassLoader'), true, true);
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
spl_autoload_unregister(array('ComposerAutoloaderInita23263c676bf46f912b30aa811ee8082', 'loadClassLoader'));
spl_autoload_unregister(array('ComposerAutoloaderInit1d7cf0512d1a9abcf600e788fc23ce4a', 'loadClassLoader'));
require __DIR__ . '/autoload_static.php';
call_user_func(\Composer\Autoload\ComposerStaticInita23263c676bf46f912b30aa811ee8082::getInitializer($loader));
call_user_func(\Composer\Autoload\ComposerStaticInit1d7cf0512d1a9abcf600e788fc23ce4a::getInitializer($loader));
$loader->setClassMapAuthoritative(true);
$loader->register(true);
$filesToLoad = \Composer\Autoload\ComposerStaticInita23263c676bf46f912b30aa811ee8082::$files;
$filesToLoad = \Composer\Autoload\ComposerStaticInit1d7cf0512d1a9abcf600e788fc23ce4a::$files;
$requireFile = \Closure::bind(static function ($fileIdentifier, $file) {
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
$GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;

View File

@ -4,7 +4,7 @@
namespace Composer\Autoload;
class ComposerStaticInita23263c676bf46f912b30aa811ee8082
class ComposerStaticInit1d7cf0512d1a9abcf600e788fc23ce4a
{
public static $files = array (
'ad155f8f1cf0d418fe49e248db8c661b' => __DIR__ . '/..' . '/react/promise/src/functions_include.php',
@ -3095,9 +3095,9 @@ class ComposerStaticInita23263c676bf46f912b30aa811ee8082
public static function getInitializer(ClassLoader $loader)
{
return \Closure::bind(function () use ($loader) {
$loader->prefixLengthsPsr4 = ComposerStaticInita23263c676bf46f912b30aa811ee8082::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInita23263c676bf46f912b30aa811ee8082::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInita23263c676bf46f912b30aa811ee8082::$classMap;
$loader->prefixLengthsPsr4 = ComposerStaticInit1d7cf0512d1a9abcf600e788fc23ce4a::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInit1d7cf0512d1a9abcf600e788fc23ce4a::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInit1d7cf0512d1a9abcf600e788fc23ce4a::$classMap;
}, null, ClassLoader::class);
}