first commit

This commit is contained in:
2026-06-23 09:13:51 +03:00
commit f6c7db328f
103 changed files with 1618 additions and 0 deletions
+1
View File
@@ -0,0 +1 @@
"""Celery worker package."""
+12
View File
@@ -0,0 +1,12 @@
from celery import Celery
from app.config import get_settings
settings = get_settings()
celery_app = Celery(
"radio_api",
broker=settings.redis_url,
backend=settings.redis_url,
include=["app.workers.tasks"],
)
+11
View File
@@ -0,0 +1,11 @@
from app.workers.celery_app import celery_app
@celery_app.task(name="coverage.compute")
def compute_coverage(job_id: str) -> dict[str, str]:
return {"job_id": job_id, "status": "not_implemented"}
@celery_app.task(name="viewshed.compute")
def compute_viewshed(job_id: str) -> dict[str, str]:
return {"job_id": job_id, "status": "not_implemented"}