Download celery_worker.py from mgbam/AICEO: direct link, hf CLI and curl.
- Browser
- Download file 409 Bytes
-
https://huggingface.co/spaces/mgbam/AICEO/resolve/9520ed7f8f89a2be1b7764b9fe1d926fc5dce338/celery_worker.py
- Command line
-
hf download hf://spaces/mgbam/AICEO@9520ed7f8f89a2be1b7764b9fe1d926fc5dce338/celery_worker.py
-
curl -L -o celery_worker.py https://huggingface.co/spaces/mgbam/AICEO/resolve/9520ed7f8f89a2be1b7764b9fe1d926fc5dce338/celery_worker.py
409 Bytes
| from celery import Celery | |
| from agents.strategy_agent import StrategyAgent | |
| from memory.database import init_db, log_action | |
| # Initialize DB on startup | |
| init_db() | |
| app = Celery("autoexec_ai", broker="redis://localhost:6379/0") | |
| def scheduled_loop(): | |
| sa = StrategyAgent() | |
| result = sa.generate("fitness", "dropshipping") | |
| log_action("StrategyAgent", "scheduled_run", result) | |
| return result | |