Use open pikerd from chart entrypoint

supervise
Tyler Goodlet 2021-03-22 09:36:47 -04:00
parent 4ab8545e87
commit 20a9617c18
1 changed files with 2 additions and 5 deletions

View File

@ -41,6 +41,7 @@ import trio
import tractor import tractor
from outcome import Error from outcome import Error
from .._daemon import maybe_open_pikerd
from ..log import get_logger from ..log import get_logger
from ._pg_overrides import _do_overrides from ._pg_overrides import _do_overrides
@ -194,11 +195,7 @@ def run_qtractor(
# define tractor entrypoint # define tractor entrypoint
async def main(): async def main():
async with tractor.open_root_actor( async with maybe_open_pikerd(
arbiter_addr=(
tractor._root._default_arbiter_host,
tractor._root._default_arbiter_port,
),
name='qtractor', name='qtractor',
**tractor_kwargs, **tractor_kwargs,
): ):