Skip to content

Commit

Permalink
CV2-5362 Set expiration explicitly on all SharedModel keys
Browse files Browse the repository at this point in the history
  • Loading branch information
DGaffney committed Sep 26, 2024
1 parent d844810 commit 6a5500b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/main/lib/shared_models/shared_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 6a5500b

Please sign in to comment.