Carry forward the lab4 API and storage baseline, stage verified originals in MinIO, and atomically commit attachment, job, and outbox records before 202. Publish identifier-only jobs with broker confirms and reclaimable outbox leases. Clean abandoned and completed staging objects after database checks.
15 lines
287 B
Python
15 lines
287 B
Python
"""Run the ASGI worker as the container's main process."""
|
|
|
|
import os
|
|
|
|
import uvicorn
|
|
|
|
|
|
if __name__ == "__main__":
|
|
uvicorn.run(
|
|
"src.main:app",
|
|
host=os.environ.get("APP_HOST", "0.0.0.0"),
|
|
port=int(os.environ.get("APP_PORT", "8080")),
|
|
workers=1,
|
|
)
|