diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2017-03-08 18:00:33 +0100 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2017-03-08 18:00:33 +0100 |
| commit | 07ce48145343202a074890a413459cad242a8cad (patch) | |
| tree | e6de381ede7df68395582c177a8edd62601daf50 | |
| parent | 93708bb31e2edd71f4cb8ac922b8afae263de293 (diff) | |
| download | joblib-07ce48145343202a074890a413459cad242a8cad.tar.gz joblib-07ce48145343202a074890a413459cad242a8cad.zip | |
order by priority and id
| -rw-r--r-- | joblib.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -80,7 +80,7 @@ class JobQueue(object): FROM ( SELECT id FROM jobs WHERE status='open' AND type=$1 - ORDER BY priority ASC + ORDER BY priority, id LIMIT $2 ) AS open_jobs WHERE jobs.id=open_jobs.id |
