From a2c70cb5482db299bcb52dfbdbe1dc333514cec2 Mon Sep 17 00:00:00 2001
From: Tim Repke <repke@mcc-berlin.net>
Date: Wed, 10 Jul 2024 17:05:33 +0200
Subject: [PATCH] add 24h timeout to actors

---
 server/pipelines/actor.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/server/pipelines/actor.py b/server/pipelines/actor.py
index a142a2b..523022a 100644
--- a/server/pipelines/actor.py
+++ b/server/pipelines/actor.py
@@ -69,7 +69,8 @@ class NacsosActor(Actor[P, R]):
 
         message = super().send_with_options(args=args, kwargs=kwargs,
                                             nacsos_actor_name=self.actor_name,
-                                            nacsos_task_id=self.task_id)
+                                            nacsos_task_id=self.task_id,
+                                            time_limit=86400000)  # 24h in ms => 24*60*60*1000
 
         db_engine = get_engine(settings=settings.DB)  # type: ignore[arg-type]
         with db_engine.session() as session:  # type: Session
-- 
GitLab