aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2018-11-01 21:52:20 +0100
committerGitHub <noreply@github.com>2018-11-01 21:52:20 +0100
commit35e3d40e803653e2fdfcd775eefc2d8a9a183d80 (patch)
treecfa3e9ef33a58f090a74db27e0d6d5598727eb2f /core
parentd96e2ce1113158e770a89e1dbf5b6c52e6057565 (diff)
parentf5a1f4bc1b6338804106e4beac6af5ab2732a947 (diff)
downloadnextcloud-server-35e3d40e803653e2fdfcd775eefc2d8a9a183d80.tar.gz
nextcloud-server-35e3d40e803653e2fdfcd775eefc2d8a9a183d80.zip
Merge pull request #12188 from nextcloud/revert/9900/revert-wait-for-cron
Revert "Wait for cron to finish before running upgrade command"
Diffstat (limited to 'core')
-rw-r--r--core/Command/Upgrade.php6
-rw-r--r--core/ajax/update.php6
2 files changed, 2 insertions, 10 deletions
diff --git a/core/Command/Upgrade.php b/core/Command/Upgrade.php
index 86f049d9f2a..5a2deea0b6c 100644
--- a/core/Command/Upgrade.php
+++ b/core/Command/Upgrade.php
@@ -99,8 +99,7 @@ class Upgrade extends Command {
$this->config,
\OC::$server->getIntegrityCodeChecker(),
$this->logger,
- $this->installer,
- \OC::$server->getJobList()
+ $this->installer
);
$dispatcher = \OC::$server->getEventDispatcher();
@@ -192,9 +191,6 @@ class Upgrade extends Command {
$updater->listen('\OC\Updater', 'maintenanceActive', function () use($output) {
$output->writeln('<info>Maintenance mode is kept active</info>');
});
- $updater->listen('\OC\Updater', 'waitForCronToFinish', function () use($output) {
- $output->writeln('<info>Waiting for cron to finish (checks again in 5 seconds) …</info>');
- });
$updater->listen('\OC\Updater', 'updateEnd',
function ($success) use($output, $self) {
if ($success) {
diff --git a/core/ajax/update.php b/core/ajax/update.php
index 6def2c6797b..7dead22b9dd 100644
--- a/core/ajax/update.php
+++ b/core/ajax/update.php
@@ -119,8 +119,7 @@ if (\OCP\Util::needUpgrade()) {
$config,
\OC::$server->getIntegrityCodeChecker(),
$logger,
- \OC::$server->query(\OC\Installer::class),
- \OC::$server->getJobList()
+ \OC::$server->query(\OC\Installer::class)
);
$incompatibleApps = [];
@@ -153,9 +152,6 @@ if (\OCP\Util::needUpgrade()) {
$updater->listen('\OC\Updater', 'maintenanceActive', function () use ($eventSource, $l) {
$eventSource->send('success', (string)$l->t('Maintenance mode is kept active'));
});
- $updater->listen('\OC\Updater', 'waitForCronToFinish', function () use ($eventSource, $l) {
- $eventSource->send('success', (string)$l->t('Waiting for cron to finish (checks again in 5 seconds) …'));
- });
$updater->listen('\OC\Updater', 'dbUpgradeBefore', function () use($eventSource, $l) {
$eventSource->send('success', (string)$l->t('Updating database schema'));
});