Commit 7b2ddbe8 authored by janis.streib's avatar janis.streib 🦉
Browse files

FIX: serialization for polling

parent 6b588572
......@@ -78,7 +78,7 @@ def poll(job_id):
job.poll(session, db, get_db_conn())
pipe = r.pipeline()
pipe.multi()
pipe.set(job_id, job)
pipe.set(job_id, json.dumps(job.__dict__))
pipe.expire(job_id, 60 * 60 * 12)
pipe.execute()
return jsonify(job)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment