diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2017-03-14 17:43:33 +0100 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2017-03-14 17:43:33 +0100 |
| commit | d6f36879af6de9af26a99a9c518152091a1ff1fc (patch) | |
| tree | 603a9c7309d386b90f13d8c3d80204fcb67223f6 | |
| parent | f0bb72ce9b48c2436b3a7052637fd8bdece6a705 (diff) | |
| download | joblib-d6f36879af6de9af26a99a9c518152091a1ff1fc.tar.gz joblib-d6f36879af6de9af26a99a9c518152091a1ff1fc.zip | |
acquire: return id not record
| -rw-r--r-- | joblib.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |
