Update app.py
Browse files82 unmodified lines838485868788899091929394959697988 unmodified lines10710810911011111211382 unmodified lines# Scheduler for automated daily batch (runs on Hugging Face Spaces / Servers)# ----------------------------------------------------------------------------try:import sys# Ensure local modules are importablesys.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 BackgroundSchedulerfrom apscheduler.schedulers.background import BackgroundSchedulerimport run_daily_batchimport datetimedef 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_paramsrun_daily_batch.run_batch_process(deps,day=target_date,time_from_str=bp.filter_time_from,82 unmodified lines83848586878889908 unmodified lines9910010110210310410582 unmodified lines# Scheduler for automated daily batch (runs on Hugging Face Spaces / Servers)# ----------------------------------------------------------------------------try:from apscheduler.schedulers.background import BackgroundSchedulerfrom calls_analyser import runner as daily_runnerimport datetimedef 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_paramsdaily_runner.run_batch_process(deps,day=target_date,time_from_str=bp.filter_time_from,
app.py+2-10