summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2017-03-14 17:43:33 +0100
committerschneefux <schneefux+commit@schneefux.xyz>2017-03-14 17:43:33 +0100
commitd6f36879af6de9af26a99a9c518152091a1ff1fc (patch)
tree603a9c7309d386b90f13d8c3d80204fcb67223f6
parentf0bb72ce9b48c2436b3a7052637fd8bdece6a705 (diff)
downloadjoblib-d6f36879af6de9af26a99a9c518152091a1ff1fc.tar.gz
joblib-d6f36879af6de9af26a99a9c518152091a1ff1fc.zip
acquire: return id not record
-rw-r--r--joblib.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/joblib.py b/joblib.py
index 7ea908c..04a37d0 100644
--- a/joblib.py
+++ b/joblib.py
@@ -82,7 +82,7 @@ class JobQueue(object):
ids = []
async with self._con.transaction():
for pl, pr in zip(payloads, priorities):
- ids.append(await insert.fetch(jobtype, pl, pr))
+ ids.append(await insert.fetchval(jobtype, pl, pr))
await self._con.execute("SELECT pg_notify($1 || '_open', '')",
jobtype)