diff --git a/ansible/roles/honcho/templates/honcho-deriver.container.j2 b/ansible/roles/honcho/templates/honcho-deriver.container.j2 index c3259a4..92aa10b 100644 --- a/ansible/roles/honcho/templates/honcho-deriver.container.j2 +++ b/ansible/roles/honcho/templates/honcho-deriver.container.j2 @@ -20,7 +20,8 @@ Network={{ honcho_network_name }} # Run the deriver script instead of the FastAPI server. The deriver # polls the queue and processes work in a loop. Number of concurrent # workers controlled via DERIVER_WORKERS. -Exec=/app/.venv/bin/python /app/src/deriver/deriver.py +WorkingDir=/app +Exec=/app/.venv/bin/python -m src.deriver.deriver # -- Database --------------------------------------------------------------- Environment=DB_CONNECTION_URI=postgresql+psycopg://{{ honcho_db_user }}:{{ honcho_db_password }}@{{ honcho_postgres_container_name }}:5432/{{ honcho_db_name }}