add healthcheck cli command
This commit is contained in:
parent
6e8b0a1c58
commit
029514d80b
2 changed files with 22 additions and 8 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue