Add more print statements to figure out when the job is hanging (#150)

* Add more print statements to figure out when the job is hanging

* Add yet another print
This commit is contained in:
Chelsea Troy 2023-09-19 19:37:26 -05:00 коммит произвёл GitHub
Родитель d8c58ae9b8
Коммит 29915dc833
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 9 добавлений и 1 удалений

Просмотреть файл

@ -1,3 +1,5 @@
print("Look at me! I'm running a Python command! WOW!")
import argparse
import pandas as pd
@ -6,6 +8,8 @@ from collections import namedtuple
from data_validation import retrieve_data_validation_metrics, record_validation_results
print("Dependencies successfully imported!")
parser = argparse.ArgumentParser(
description="Validate Recent Search Input Against Historical Norms",
formatter_class=argparse.ArgumentDefaultsHelpFormatter,
@ -17,13 +21,17 @@ parser.add_argument(
"--data_validation_reporting_destination",
help="Table to store data validation metric test results",
)
print("Parser successfully instantiated!")
args = parser.parse_args()
print("Args successfully parsed")
print("Args successfully parsed!")
print(f"Data Validation Origin: {args.data_validation_origin}")
print(f"Data Validation Reporting Destination: {args.data_validation_reporting_destination}")
print("Retrieving Data Validation Metrics Now...")
validation_df = retrieve_data_validation_metrics(args.data_validation_origin)
print(f"Input Dataframe Shape: {validation_df.shape}")
print("Recording validation results...")
record_validation_results(validation_df, args.data_validation_reporting_destination)