mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
add more logging
This commit is contained in:
parent
c56789a502
commit
477ebcef67
1 changed files with 27 additions and 12 deletions
|
|
@ -7,18 +7,33 @@ for k, v in sorted(os.environ.items()):
|
|||
print(f"{k}={v}")
|
||||
print("=" * 60)
|
||||
|
||||
import json
|
||||
import pandas as pd
|
||||
import requests
|
||||
from uuid import UUID
|
||||
from urllib.parse import unquote
|
||||
from backend.address2UPRN.main import (
|
||||
resolve_uprns_for_postcode_group,
|
||||
get_epc_data_with_postcode,
|
||||
)
|
||||
from backend.app.db.functions.tasks.Tasks import SubTaskInterface
|
||||
from utils.s3 import read_csv_from_s3 as read_csv_from_s3_dict
|
||||
from tqdm import tqdm
|
||||
try:
|
||||
import json
|
||||
print("✓ json imported")
|
||||
import pandas as pd
|
||||
print("✓ pandas imported")
|
||||
import requests
|
||||
print("✓ requests imported")
|
||||
from uuid import UUID
|
||||
print("✓ UUID imported")
|
||||
from urllib.parse import unquote
|
||||
print("✓ urllib.parse imported")
|
||||
from utils.s3 import read_csv_from_s3 as read_csv_from_s3_dict
|
||||
print("✓ utils.s3 imported")
|
||||
from tqdm import tqdm
|
||||
print("✓ tqdm imported")
|
||||
from backend.address2UPRN.main import (
|
||||
resolve_uprns_for_postcode_group,
|
||||
get_epc_data_with_postcode,
|
||||
)
|
||||
print("✓ backend.address2UPRN imported")
|
||||
from backend.app.db.functions.tasks.Tasks import SubTaskInterface
|
||||
print("✓ SubTaskInterface imported")
|
||||
except Exception as e:
|
||||
print(f"✗ IMPORT ERROR: {type(e).__name__}: {e}")
|
||||
import traceback
|
||||
traceback.print_exc()
|
||||
raise
|
||||
|
||||
|
||||
def parse_s3_console_url(s3_uri: str) -> tuple[str, str]:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue