mirror of
https://github.com/nextcloud/server.git
synced 2026-05-26 11:22:28 -04:00
Merge pull request #6828 from owncloud/dont_add_queuedtasks_during_upgrade
add needUpgrade() check to addQueuedTask()
This commit is contained in:
commit
369ec65d12
1 changed files with 4 additions and 2 deletions
|
|
@ -173,8 +173,10 @@ class BackgroundJob {
|
|||
* @return int id of task
|
||||
*/
|
||||
public static function addQueuedTask($app, $class, $method, $parameters) {
|
||||
self::registerJob('OC\BackgroundJob\Legacy\QueuedJob', array('app' => $app, 'klass' => $class, 'method' => $method, 'parameters' => $parameters));
|
||||
return true;
|
||||
if (!\OC::needUpgrade()) {
|
||||
self::registerJob('OC\BackgroundJob\Legacy\QueuedJob', array('app' => $app, 'klass' => $class, 'method' => $method, 'parameters' => $parameters));
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue