From 921f72f7fef70322231872263d9209476910e896 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Sun, 14 Apr 2024 18:36:22 -0400 Subject: [PATCH] Add `maybe_enable_greenback: bool` flag to `open_root_actor()` --- tractor/_root.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tractor/_root.py b/tractor/_root.py index bc55fd9..9ce470f 100644 --- a/tractor/_root.py +++ b/tractor/_root.py @@ -79,6 +79,7 @@ async def open_root_actor( # enables the multi-process debugger support debug_mode: bool = False, + maybe_enable_greenback: bool = False, # `.pause_from_sync()/breakpoint()` support # internal logging loglevel: str|None = None, @@ -107,8 +108,8 @@ async def open_root_actor( ) if ( debug_mode - and - await _debug.maybe_init_greenback( + and maybe_enable_greenback + and await _debug.maybe_init_greenback( raise_not_found=False, ) ):