Use open pikerd from chart entrypoint
parent
4ab8545e87
commit
20a9617c18
|
@ -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,
|
||||||
):
|
):
|
||||||
|
|
Loading…
Reference in New Issue