From 25c57749a8ead7460f7ea62216bda4816f2ced04 Mon Sep 17 00:00:00 2001 From: William Lachance Date: Wed, 17 Dec 2014 16:03:43 -0500 Subject: [PATCH] Bug 1112749 - Only process objects for each repo once --- treeherder/model/tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/treeherder/model/tasks.py b/treeherder/model/tasks.py index 1f3c5ed8a..dee57b7d2 100644 --- a/treeherder/model/tasks.py +++ b/treeherder/model/tasks.py @@ -17,7 +17,7 @@ def process_objects(limit=None): """ # default limit to 100 limit = limit or 100 - for ds in Datasource.objects.all(): + for ds in Datasource.objects.filter(contenttype='objectstore'): jm = JobsModel(ds.project) try: jm.process_objects(limit)