stable
Clone or download
Read-only
Delay all commands of the tuleap CLI in cron environnement before doing anything else
Currently a few commands are delayed but the whole Tuleap stack is initialized. In a situation where a lot of Tuleap instances are executed on the same physical server this has a non negligible cost. This is part of request #13394: tuleap-aio should run on centos7 Change-Id: I557c736969f68e80f26320557edcf505f8e2ac6e
Modified Files
Name | ||||
---|---|---|---|---|
M | src/common/CLI/Command/DailyJobCommand.php | +28 | −18 | Go to diff View file |
M | src/common/CLI/Command/LaunchEveryMinuteJobCommand.php | +0 | −10 | Go to diff View file |
M | src/common/CLI/Command/ProcessSystemEventsCommand.php | +0 | −4 | Go to diff View file |
M | src/common/CLI/Command/QueueSystemCheckCommand.php | +16 | −11 | Go to diff View file |
A | src/common/CLI/DelayExecution/ConditionalTuleapCronEnvExecutionDelayer.php | +43 | −0 | Go to diff View file |
A | src/common/CLI/DelayExecution/ExecutionDelayedLauncher.php | +45 | −0 | Go to diff View file |
A | src/common/CLI/DelayExecution/ExecutionDelayer.php | +28 | −0 | Go to diff View file |
A | src/common/CLI/DelayExecution/ExecutionDelayerRandomizedSleep.php | +46 | −0 | Go to diff View file |
M | src/utils/tuleap.php | +42 | −5 | Go to diff View file |
A | tests/phpunit/common/CLI/DelayExecution/ConditionalTuleapCronEnvExecutionDelayerTest.php | +56 | −0 | Go to diff View file |
A | tests/phpunit/common/CLI/DelayExecution/ExecutionDelayedLauncherTest.php | +45 | −0 | Go to diff View file |
A | tests/phpunit/common/CLI/DelayExecution/ExecutionDelayerRandomizedSleepTest.php | +41 | −0 | Go to diff View file |