Download scripts/force_refresh.py from UNI-INTEL/UNI-ARC12: direct link, hf CLI and curl.
- Browser
- Download file 385 Bytes
-
https://huggingface.co/spaces/UNI-INTEL/UNI-ARC12/resolve/main/scripts/force_refresh.py
- Command line
-
hf download hf://spaces/UNI-INTEL/UNI-ARC12/scripts/force_refresh.py
-
curl -L -o force_refresh.py https://huggingface.co/spaces/UNI-INTEL/UNI-ARC12/resolve/main/scripts/force_refresh.py
385 Bytes
| import asyncio | |
| import logging | |
| from src.scheduler.task_scheduler import run_news_cycle | |
| logging.basicConfig(level=logging.INFO) | |
| async def force_kickstart(): | |
| print("🚀 Manually Force-Triggering News Intelligence Cycle...") | |
| await run_news_cycle() | |
| print("✅ Cycle Complete. Fresh news committed to database.") | |
| if __name__ == "__main__": | |
| asyncio.run(force_kickstart()) | |