lets do subtasks first

This commit is contained in:
Jun-te Kim 2026-02-09 22:57:23 +00:00
parent 477ebcef67
commit dd8a490210
2 changed files with 15 additions and 7 deletions

View file

@ -5,10 +5,11 @@ import pandas as pd
from difflib import SequenceMatcher
from tqdm import tqdm
from utils.logger import setup_logger
import re
from typing import Set
logger = setup_logger()
import re
EPC_AUTH_TOKEN = os.getenv(
"EPC_AUTH_TOKEN",
@ -18,10 +19,6 @@ EPC_AUTH_TOKEN = os.getenv(
if EPC_AUTH_TOKEN is None:
raise RuntimeError("EPC_AUTH_TOKEN not defined in env")
import re
from difflib import SequenceMatcher
from typing import Set
def levenshtein(a: str, b: str) -> float:
"""

View file

@ -1,5 +1,6 @@
import os
import sys
print("=" * 60)
print("ENVIRONMENT AT STARTUP:")
print("=" * 60)
@ -9,29 +10,39 @@ print("=" * 60)
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.app.db.functions.tasks.Tasks import SubTaskInterface
print("✓ SubTaskInterface 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