From fa1932a5ac4dd16c743ae55315aa7419297058b1 Mon Sep 17 00:00:00 2001 From: schneefux Date: Sat, 25 Feb 2017 22:12:27 +0100 Subject: fixed priority being in wrong order --- joblib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/joblib.py b/joblib.py index 6891e11..e11ec52 100644 --- a/joblib.py +++ b/joblib.py @@ -47,7 +47,7 @@ class JobQueue(object): SELECT id, payload FROM jobs WHERE type=$1 AND status='open' - ORDER BY priority ASC + ORDER BY priority DESC """, jobtype) if result is None: # no jobs available -- cgit v1.3.1