From b647f6afee9d3d2ef2456b9e16ae13a4490fa055 Mon Sep 17 00:00:00 2001 From: JARVIS Date: Sat, 30 May 2026 23:37:33 -0500 Subject: [PATCH] fix(honcho/deriver): invoke package main (src.deriver) not module file MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit src/deriver/deriver.py is a helpers module with no __main__ guard — running it directly loads it and exits cleanly in ~3s with no logs, which is what we were seeing. The actual queue-processor entry point is src/deriver/__main__.py (asyncio.run(run_deriver())), invoked via "python -m src.deriver". Discovered during honcho first-deploy on lincoln: deriver container crash-looped (in the sense that systemd restarted it constantly) but the underlying process was actually exiting 0 on completion of the empty helpers module. --- ansible/roles/honcho/templates/honcho-deriver.container.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ansible/roles/honcho/templates/honcho-deriver.container.j2 b/ansible/roles/honcho/templates/honcho-deriver.container.j2 index 92aa10b..22ac42e 100644 --- a/ansible/roles/honcho/templates/honcho-deriver.container.j2 +++ b/ansible/roles/honcho/templates/honcho-deriver.container.j2 @@ -21,7 +21,7 @@ Network={{ honcho_network_name }} # polls the queue and processes work in a loop. Number of concurrent # workers controlled via DERIVER_WORKERS. WorkingDir=/app -Exec=/app/.venv/bin/python -m src.deriver.deriver +Exec=/app/.venv/bin/python -m src.deriver # -- Database --------------------------------------------------------------- Environment=DB_CONNECTION_URI=postgresql+psycopg://{{ honcho_db_user }}:{{ honcho_db_password }}@{{ honcho_postgres_container_name }}:5432/{{ honcho_db_name }}