From cef3060623485fa58f0a13359821d240b5700ba6 Mon Sep 17 00:00:00 2001 From: Juan Tejada Date: Tue, 27 Sep 2016 14:11:42 -0700 Subject: [PATCH] fix(tasks): Report slow performLocal only when it takes > 500ms --- 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 08d943b99..72a649b90 100644 --- a/src/flux/stores/task-queue.coffee +++ b/src/flux/stores/task-queue.coffee @@ -141,8 +141,8 @@ class TaskQueue task.runLocal() .then => runLocalTime = Date.now() - runLocalStart - if runLocalTime >= 150 - err = new Error("Task peformLocal took more than 150ms") + if runLocalTime >= 500 + err = new Error("Task peformLocal took more than 500ms") NylasEnv.reportError(err, {task: task.toJSON(), duration: runLocalTime, taskName: task.constructor.name}) @_queue.push(task) @_updateSoon()