Initial commit: Tasteby - YouTube restaurant map service
Backend (FastAPI + Oracle ADB), Frontend (Next.js), daemon worker. Features: channel/video/restaurant management, semantic search, Google OAuth, user reviews. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
18
backend/run_daemon.py
Normal file
18
backend/run_daemon.py
Normal file
@@ -0,0 +1,18 @@
|
||||
"""Run the daemon worker."""
|
||||
|
||||
import logging
|
||||
import os
|
||||
|
||||
from dotenv import load_dotenv
|
||||
load_dotenv()
|
||||
|
||||
from daemon.worker import run_loop
|
||||
|
||||
logging.basicConfig(
|
||||
level=logging.INFO,
|
||||
format="%(asctime)s [%(levelname)s] %(name)s: %(message)s",
|
||||
)
|
||||
|
||||
if __name__ == "__main__":
|
||||
interval = int(os.environ.get("DAEMON_INTERVAL", "3600"))
|
||||
run_loop(interval)
|
||||
Reference in New Issue
Block a user