diff --git a/app/main/lib/shared_models/shared_model.py b/app/main/lib/shared_models/shared_model.py index 300b821f..8747bac4 100644 --- a/app/main/lib/shared_models/shared_model.py +++ b/app/main/lib/shared_models/shared_model.py @@ -85,6 +85,7 @@ def get_task(self, timeout=0): def send_response(self, task, response): self.datastore.set(task.task_id, json.dumps({"response": response})) + self.datastore.expire(task.task_id, 60*60*24) def run(self): while True: