초기 커밋
This commit is contained in:
14
app/tasks/scheduled.py
Normal file
14
app/tasks/scheduled.py
Normal file
@@ -0,0 +1,14 @@
|
||||
from __future__ import annotations
|
||||
|
||||
import structlog
|
||||
|
||||
from app.tasks.celery_app import celery_app
|
||||
|
||||
logger = structlog.get_logger("tasks.scheduled")
|
||||
|
||||
|
||||
@celery_app.task(name="app.tasks.scheduled.system_health_report")
|
||||
def system_health_report() -> dict:
|
||||
"""Generate periodic system health report."""
|
||||
logger.info("system_health_report_generated")
|
||||
return {"status": "ok"}
|
||||
Reference in New Issue
Block a user