things kinda work
This commit is contained in:
parent
c38ce5cfe6
commit
7eb697fecd
10 changed files with 342 additions and 29 deletions
|
|
@ -7,6 +7,7 @@ from anaxi.logging import get_anaxi_logger
|
|||
from anaxi.processes import (
|
||||
run_cosmos_db_healthcheck_process,
|
||||
run_postgres_healthcheck_process,
|
||||
run_sync_process,
|
||||
)
|
||||
|
||||
logger = get_anaxi_logger(__name__)
|
||||
|
|
@ -47,3 +48,11 @@ def postgres_healthcheck(postgres_database):
|
|||
logger.info("Starting a Postgres healthcheck.")
|
||||
run_postgres_healthcheck_process(postgres_database)
|
||||
logger.info("Finished the Postgres healthcheck.")
|
||||
|
||||
|
||||
@cli.command()
|
||||
@click.option("--stream-id", type=click.STRING, required=True)
|
||||
def sync_stream(stream_id):
|
||||
logger.info("Starting a sync.")
|
||||
run_sync_process(stream_id)
|
||||
logger.info("Finished sync.")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue