From 2e8268b53e8a1b3c9630139783d0123918a23bbc Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Sat, 13 May 2023 16:51:11 -0400 Subject: [PATCH] Allow passing `allow_overruns: bool` to `Services.start_service_task()` --- piker/service/_mngr.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/piker/service/_mngr.py b/piker/service/_mngr.py index 69712c07..e37bb7ec 100644 --- a/piker/service/_mngr.py +++ b/piker/service/_mngr.py @@ -56,6 +56,7 @@ class Services: name: str, portal: tractor.Portal, target: Callable, + allow_overruns: bool = False, **ctx_kwargs, ) -> (trio.CancelScope, tractor.Context): @@ -81,6 +82,7 @@ class Services: with trio.CancelScope() as cs: async with portal.open_context( target, + allow_overruns=allow_overruns, **ctx_kwargs, ) as (ctx, first):