diff --git a/src/apptask.js b/src/apptask.js index a129b5a9a..e3acf5f0e 100644 --- a/src/apptask.js +++ b/src/apptask.js @@ -825,7 +825,7 @@ function update(app, args, progressCallback, callback) { async.series([ // this protects against the theoretical possibility of an app being marked for update from // a previous version of box code - progressCallback.bind(null, { percent: 0, message: 'Verify manifest' }), + progressCallback.bind(null, { percent: 5, message: 'Verify manifest' }), verifyManifest.bind(null, updateConfig.manifest), function (next) { diff --git a/src/apptaskmanager.js b/src/apptaskmanager.js index e07b969bb..bb4fa9d3f 100644 --- a/src/apptaskmanager.js +++ b/src/apptaskmanager.js @@ -48,7 +48,7 @@ function scheduleTask(appId, taskId, callback) { if (Object.keys(gActiveTasks).length >= TASK_CONCURRENCY) { debug(`Reached concurrency limit, queueing task id ${taskId}`); - tasks.update(taskId, { percent: 0, message: 'Waiting for other app tasks to complete' }, NOOP_CALLBACK); + tasks.update(taskId, { percent: 1, message: 'Waiting for other app tasks to complete' }, NOOP_CALLBACK); gPendingTasks.push({ appId, taskId, callback }); return; } @@ -57,7 +57,7 @@ function scheduleTask(appId, taskId, callback) { if (lockError) { debug(`Could not get lock. ${lockError.message}, queueing task id ${taskId}`); - tasks.update(taskId, { percent: 0, message: waitText(lockError.operation) }, NOOP_CALLBACK); + tasks.update(taskId, { percent: 1, message: waitText(lockError.operation) }, NOOP_CALLBACK); gPendingTasks.push({ appId, taskId, callback }); return; } diff --git a/src/tasks.js b/src/tasks.js index 3b7c9279d..780fc4283 100644 --- a/src/tasks.js +++ b/src/tasks.js @@ -125,7 +125,7 @@ function add(type, args, callback) { assert(Array.isArray(args)); assert.strictEqual(typeof callback, 'function'); - taskdb.add({ type: type, percent: 0, message: 'Queued', args: args }, function (error, taskId) { + taskdb.add({ type: type, percent: 1, message: 'Queued', args: args }, function (error, taskId) { if (error) return callback(error); callback(null, taskId);