From 145388a5e5e111dd0f52dbf30ac3a1cff6bd61e4 Mon Sep 17 00:00:00 2001 From: volpino Date: Sat, 30 Jun 2012 10:50:17 +0200 Subject: [PATCH] euscanwww: scan_upstream_all_task scans in randomized order Signed-off-by: volpino --- euscanwww/djeuscan/tasks.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/euscanwww/djeuscan/tasks.py b/euscanwww/djeuscan/tasks.py index 3fcbcae..65269aa 100644 --- a/euscanwww/djeuscan/tasks.py +++ b/euscanwww/djeuscan/tasks.py @@ -205,7 +205,11 @@ def scan_upstream_all_task(purge_versions=False): Runs a parallel portage scan for all packages """ kwargs = {"purge_versions": purge_versions} - return _run_in_chunks(_scan_upstream_task, Package.objects.all(), kwargs) + return _run_in_chunks( + _scan_upstream_task, + Package.objects.all().order_by('?'), + kwargs + ) @task