add healthcheck cli command

This commit is contained in:
Pablo Martin 2024-06-13 16:32:03 +02:00
parent 6e8b0a1c58
commit 029514d80b
2 changed files with 22 additions and 8 deletions

View file

@ -10,7 +10,7 @@ from dotenv import load_dotenv
from xexe.constants import PATHS, RATES_SOURCES
from xexe.inputs_handling import handle_get_rates_inputs
from xexe.processes import run_get_rates, run_xe_healthcheck
from xexe.processes import run_dwh_healthcheck, run_get_rates, run_xe_healthcheck
logging.basicConfig(
level=logging.DEBUG,
@ -51,6 +51,13 @@ def xe_healthcheck():
logger.info("Healthcheck attempt finished.")
@cli.command()
def dwh_healthcheck():
logger.info("Running healthcheck against dwh API.")
run_dwh_healthcheck()
logger.info("Healthcheck attempt finished.")
@cli.command()
@click.option(
"--start-date",