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
This commit is contained in:
parent
5dffc27d16
commit
5a4ee52ab5
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user