From 0f613050e10113162e1048f88b7640c11f743c5b Mon Sep 17 00:00:00 2001 From: overclockworked64 Date: Sat, 16 Oct 2021 17:39:36 +0200 Subject: [PATCH] Avoid RuntimeError by not using current_actor's uid --- tractor/_clustering.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tractor/_clustering.py b/tractor/_clustering.py index 8142373..37a03bb 100644 --- a/tractor/_clustering.py +++ b/tractor/_clustering.py @@ -25,7 +25,8 @@ async def open_actor_cluster( ]: portals: dict[str, tractor.Portal] = {} - uid = tractor.current_actor().uid + uid = __import__('random').randint(0, 2 ** 16) + # uid = tractor.current_actor().uid if not names: suffix = '_'.join(uid)