From 5a4ee52ab5d4e135c7f29d565e05a1c5560b9aba Mon Sep 17 00:00:00 2001 From: "James E. Blair" <jeblair@hp.com> Date: Thu, 12 Feb 2015 18:50:56 -0800 Subject: [PATCH] Set priority of initial change sync to normal On startup, the initial update of all projects was set to high priority. That makes sense for most of the sync tasks at startup (upload changes, etc). But if you have left gertty to not sync for any period of time, there could be quite a changes to sync. With that happening at high priority, there is no way to find a change and individually refresh it. So move the initial sync to low priority. (Further syncs of all projects are at low priority.) Change-Id: I7cdffc39048ac4770bffefebe32d08371feb11be --- gertty/sync.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gertty/sync.py b/gertty/sync.py index 481b231..ccf44a0 100644 --- a/gertty/sync.py +++ b/gertty/sync.py @@ -879,7 +879,7 @@ class Sync(object): self.submitTask(CheckReposTask(HIGH_PRIORITY)) self.submitTask(UploadReviewsTask(HIGH_PRIORITY)) self.submitTask(SyncProjectListTask(HIGH_PRIORITY)) - self.submitTask(SyncSubscribedProjectsTask(HIGH_PRIORITY)) + self.submitTask(SyncSubscribedProjectsTask(NORMAL_PRIORITY)) self.submitTask(SyncSubscribedProjectBranchesTask(LOW_PRIORITY)) self.periodic_thread = threading.Thread(target=self.periodicSync) self.periodic_thread.daemon = True