Spaces:
Sleeping
Sleeping
Upload app.py
Browse files79 unmodified lines80818283848579 unmodified lines# Run T+5 pipeline at 09:21background_tasks.add_task(run_update_pipeline, is_t5=True)return {"status": "triggered", "message": "Morning T+5 forecast pipeline started in the background."}else:return {"status": "skipped", "reason": f"Current time {current_time} is not in the execution windows (09:21-10:00 for T+5, after 15:45 for T+1)."}79 unmodified lines8081828384858687888979 unmodified lines# Run T+5 pipeline at 09:21background_tasks.add_task(run_update_pipeline, is_t5=True)return {"status": "triggered", "message": "Morning T+5 forecast pipeline started in the background."}elif not os.path.exists(PREDICTIONS_FILE_T5):# Fallback: if file is missing (e.g. container restart), generate T+5 immediatelybackground_tasks.add_task(run_update_pipeline, is_t5=True)return {"status": "triggered", "message": "Missing T+5 predictions. Generating them now in the background."}else:return {"status": "skipped", "reason": f"Current time {current_time} is not in the execution windows (09:21-10:00 for T+5, after 15:45 for T+1)."}
app.py+4