Use result in db instead of ipc

This commit is contained in:
Girish Ramakrishnan
2018-11-29 15:16:31 -08:00
parent d9f3f64c76
commit 2f729b56fa
6 changed files with 34 additions and 49 deletions
+1 -1
View File
@@ -133,7 +133,7 @@ function doMigrate(options, caasConfig, callback) {
tasks.setProgress(tasks.TASK_MIGRATE, { percent: 10, message: 'Backing up for migration' }, NOOP_CALLBACK);
// initiate the migration in the background
backups.backupBoxAndApps({ userId: null, username: 'migrator' }, (progress) => tasks.setProgress(tasks.TASK_MIGRATE, { percent: 10+progress.percent*30/100, message: progress.message }, NOOP_CALLBACK), function (error) {
backups.backupBoxAndApps((progress) => tasks.setProgress(tasks.TASK_MIGRATE, { percent: 10+progress.percent*30/100, message: progress.message }, NOOP_CALLBACK), function (error) {
if (error) return unlock(error);
debug('migrate: domain: %s size %s region %s', options.domain, options.size, options.region);