summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2017-03-21 09:00:49 +0100
committerschneefux <schneefux+commit@schneefux.xyz>2017-03-21 09:00:49 +0100
commit049d73f217dfc881b89be23bc23d33d995bdea42 (patch)
tree3f1dd23dfd9c5c1a26fa0afbf127c28a5778a809
parenta5cc4c3ea48908166f43dabaf5d54046d2014d93 (diff)
downloadjoblib-1.2.0-threadsafe.tar.gz
joblib-1.2.0-threadsafe.zip
backport request() notification1.2.0-threadsafe
-rw-r--r--joblib.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/joblib.py b/joblib.py
index 8faf71f..d922405 100644
--- a/joblib.py
+++ b/joblib.py
@@ -66,6 +66,8 @@ class JobQueue(object):
ids.append(await insert.fetchval(jobtype,
json.dumps(pl),
pr))
+ await con.execute("SELECT pg_notify($1 || '_open', '')",
+ jobtype)
if isinstance(payload, list):
return ids
else: