summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2017-02-25 22:12:27 +0100
committerschneefux <schneefux+commit@schneefux.xyz>2017-02-25 22:12:27 +0100
commitfa1932a5ac4dd16c743ae55315aa7419297058b1 (patch)
treeea2aab3b60f9a104bee94076283d9513327933fd
parent997ed7580a47285c8f515f4ff68cc0786ec27e44 (diff)
downloadjoblib-fa1932a5ac4dd16c743ae55315aa7419297058b1.tar.gz
joblib-fa1932a5ac4dd16c743ae55315aa7419297058b1.zip
fixed priority being in wrong order
-rw-r--r--joblib.py2
1 files changed, 1 insertions, 1 deletions
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