Skip to content
Snippets Groups Projects
Commit a2c70cb5 authored by Tim Repke's avatar Tim Repke
Browse files

add 24h timeout to actors

parent 8d01e101
No related branches found
No related tags found
1 merge request!97add 24h timeout to actors
Pipeline #3577 passed
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment