summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2017-03-10 16:22:32 +0100
committerschneefux <schneefux+commit@schneefux.xyz>2017-03-10 16:22:32 +0100
commit4820673df0a122cf81c3657aa427045ad9de4818 (patch)
treec0aa14f09f9eecb983e8be3a7838fc8eea593e4a
parentdcec341b23411320dbe586eb7c889cdb6ff31ed9 (diff)
downloadjoblib-4820673df0a122cf81c3657aa427045ad9de4818.tar.gz
joblib-4820673df0a122cf81c3657aa427045ad9de4818.zip
bugfix: prepared statements don't have .execute()
-rw-r--r--joblib.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/joblib.py b/joblib.py
index 7575042..40ba814 100644
--- a/joblib.py
+++ b/joblib.py
@@ -152,8 +152,8 @@ class JobQueue(object):
reasons = reason
assert len(jobids) == len(reasons)
for jid, rsn in zip(jobids, reasons):
- await update.execute(jid,
- json.dumps({"error": rsn}))
+ await update.fetch(jid,
+ json.dumps({"error": rsn}))
async def reset(self, jobid):
"""Mark a job as open."""