Exemplo n.º 1
0
import logging

from actorlib import actor, ActorContext

from rssant_common.actor_helper import start_actor

LOG = logging.getLogger(__name__)


@actor('actor.init')
async def do_init(ctx: ActorContext):
    await ctx.hope('scheduler.load_registery')
    await ctx.hope('scheduler.dns_service_refresh')


if __name__ == "__main__":
    start_actor('scheduler', port=6790)
Exemplo n.º 2
0
from rssant_common.actor_helper import start_actor

if __name__ == "__main__":
    start_actor('harbor', port=6791)  ##
Exemplo n.º 3
0
Arquivo: main.py Projeto: zuzhi/rssant
import os

if os.getenv('MODULE_GRAPH_HOOKER') in ('1', 'true', 'True'):
    import module_graph
    module_graph.setup_hooker(save_to='data/rssant_worker_module_graph.json',
                              verbose=True)

from rssant_common.actor_helper import start_actor  # noqa: F402

if __name__ == "__main__":
    start_actor('worker', port=6792)