Update app.py
Browse files82 unmodified lines83848586878889909192938695878889908 unmodified lines9910010111010210310410582 unmodified lines# Scheduler for automated daily batch (runs on Hugging Face Spaces / Servers)# ----------------------------------------------------------------------------try: import sys # Ensure local modules are importable sys.path.append(os.path.dirname(os.path.abspath(__file__))) print(f"DEBUG: sys.path is {sys.path}") print(f"DEBUG: Directory contents of {os.getcwd()}: {os.listdir(os.getcwd())}")
from apscheduler.schedulers.background import BackgroundScheduler
from apscheduler.schedulers.background import BackgroundScheduler import run_daily_batch from calls_analyser import runner as daily_runner import datetime
def run_scheduled_job():8 unmodified lines # For safety/updates, we might want to re-build deps or just use the global 'deps'. # Using global 'deps' for now as it holds the loaded secrets/config. bp = deps.batch_params run_daily_batch.run_batch_process( daily_runner.run_batch_process( deps, day=target_date, time_from_str=bp.filter_time_from, app.py+2-10