Spaces:
Paused

yaz / src /workers /main.py
anaselamr's picture
chore: stage remaining modified files from Sprint 44 batch
16a78e2
Raw History Blame Contribute Delete
723 Bytes
"""
YAZ Care Platform — Worker Entry Point
=======================================
Docker-compose entry point: ``python3 -m src.workers.main``
Delegates to workers.worker which contains the full arq WorkerSettings.
Usage::
# Docker (staging/prod profiles)
python3 -m src.workers.main
# Direct
python -m workers.worker
"""
from __future__ import annotations
import sys
from pathlib import Path
# Ensure src/ is importable when invoked as `python3 -m src.workers.main`
_src = Path(__file__).resolve().parent.parent
if str(_src) not in sys.path:
sys.path.insert(0, str(_src))
if __name__ == "__main__":
import runpy
runpy.run_module("workers.worker", run_name="__main__", alter_sys=True)