From d28af3075e444bf5a942205a2db4733cf6a41bc2 Mon Sep 17 00:00:00 2001 From: Ben Gotow Date: Mon, 24 Aug 2015 10:51:50 -0700 Subject: [PATCH] fix(task-queue): Rename the task queue file to avoid upgrade issues --- src/flux/stores/task-queue.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/flux/stores/task-queue.coffee b/src/flux/stores/task-queue.coffee index ca07e0f3d..91ba92bc6 100644 --- a/src/flux/stores/task-queue.coffee +++ b/src/flux/stores/task-queue.coffee @@ -205,7 +205,7 @@ class TaskQueue _restoreQueueFromDisk: => try - queueFile = path.join(atom.getConfigDirPath(), 'task-queue.json') + queueFile = path.join(atom.getConfigDirPath(), 'pending-tasks.json') queue = Utils.deserializeRegisteredObjects(fs.readFileSync(queueFile)) # We need to set the processing bit back to false so it gets @@ -223,7 +223,7 @@ class TaskQueue # items, they can easily process 1000 tasks at the same moment. We can't try to # save 1000 times! (Do not remove debounce without a plan!) @_saveDebounced ?= _.debounce => - queueFile = path.join(atom.getConfigDirPath(), 'task-queue.json') + queueFile = path.join(atom.getConfigDirPath(), 'pending-tasks.json') queueJSON = Utils.serializeRegisteredObjects((@_queue ? [])) fs.writeFile(queueFile, queueJSON) , 150