2021-03-26 15:51:18 +00:00
|
|
|
# piker: trading gear for hackers
|
2023-03-08 20:59:19 +00:00
|
|
|
# Copyright (C) Tyler Goodlet (in stewardship for pikers)
|
2021-03-26 15:51:18 +00:00
|
|
|
|
|
|
|
# This program is free software: you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU Affero General Public License as published by
|
|
|
|
# the Free Software Foundation, either version 3 of the License, or
|
|
|
|
# (at your option) any later version.
|
|
|
|
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU Affero General Public License for more details.
|
|
|
|
|
|
|
|
# You should have received a copy of the GNU Affero General Public License
|
|
|
|
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
|
|
|
2021-01-31 21:11:50 +00:00
|
|
|
"""
|
2023-03-08 20:59:19 +00:00
|
|
|
Actor-runtime service orchestration machinery.
|
2021-03-26 15:51:18 +00:00
|
|
|
|
2021-01-31 21:11:50 +00:00
|
|
|
"""
|
2023-01-12 01:51:21 +00:00
|
|
|
from __future__ import annotations
|
2021-01-31 21:11:50 +00:00
|
|
|
|
2023-03-08 21:28:38 +00:00
|
|
|
from ._mngr import Services
|
2023-03-08 21:05:49 +00:00
|
|
|
from ._registry import ( # noqa
|
|
|
|
_tractor_kwargs,
|
|
|
|
_default_reg_addr,
|
2023-01-09 23:15:23 +00:00
|
|
|
_default_registry_host,
|
|
|
|
_default_registry_port,
|
2023-03-08 21:05:49 +00:00
|
|
|
open_registry,
|
|
|
|
find_service,
|
|
|
|
check_for_service,
|
2022-11-07 15:21:52 +00:00
|
|
|
)
|
2023-03-08 21:20:45 +00:00
|
|
|
from ._daemon import ( # noqa
|
|
|
|
maybe_spawn_daemon,
|
|
|
|
spawn_emsd,
|
|
|
|
maybe_open_emsd,
|
|
|
|
)
|
2023-03-08 21:28:38 +00:00
|
|
|
from ._actor_runtime import (
|
|
|
|
open_piker_runtime,
|
|
|
|
maybe_open_pikerd,
|
|
|
|
open_pikerd,
|
2023-09-28 16:13:34 +00:00
|
|
|
get_runtime_vars,
|
2023-03-08 21:28:38 +00:00
|
|
|
)
|
2023-04-21 19:47:54 +00:00
|
|
|
from ..brokers._daemon import (
|
|
|
|
spawn_brokerd,
|
|
|
|
maybe_spawn_brokerd,
|
|
|
|
)
|
2023-01-12 01:51:21 +00:00
|
|
|
|
|
|
|
|
2023-03-08 21:05:49 +00:00
|
|
|
__all__ = [
|
|
|
|
'check_for_service',
|
2023-03-08 21:28:38 +00:00
|
|
|
'Services',
|
|
|
|
'maybe_spawn_daemon',
|
|
|
|
'spawn_brokerd',
|
|
|
|
'maybe_spawn_brokerd',
|
|
|
|
'spawn_emsd',
|
|
|
|
'maybe_open_emsd',
|
|
|
|
'open_piker_runtime',
|
|
|
|
'maybe_open_pikerd',
|
|
|
|
'open_pikerd',
|
2023-09-28 16:13:34 +00:00
|
|
|
'get_runtime_vars',
|
2023-03-08 21:05:49 +00:00
|
|
|
]
|