refactor logging module, add welcome and reset daemons, changed structure of the rabbitmq queues
This commit is contained in:
@@ -3,7 +3,10 @@ import os
|
||||
import sys
|
||||
|
||||
from src.daemons.registry import DAEMONS
|
||||
from src.messaging.rabbitmq_client import rabbitmq_client
|
||||
from src.messaging.topology_setup import apply_topology
|
||||
from src.models.configs_read.daemons_json import daemons_config
|
||||
from src.models.rabbitmq_models.email import email_topology
|
||||
|
||||
|
||||
async def run_one(daemon_name: str) -> None:
|
||||
@@ -34,6 +37,8 @@ async def run_enabled_from_config() -> None:
|
||||
|
||||
|
||||
async def main() -> None:
|
||||
channel = await rabbitmq_client.get_channel()
|
||||
await apply_topology(channel, email_topology)
|
||||
if len(sys.argv) < 2:
|
||||
print("Usage: python run_daemon.py <daemon_name> | --all")
|
||||
sys.exit(1)
|
||||
|
||||
Reference in New Issue
Block a user