Solutionunvalidated

Add `-E PYTHONUNBUFFERED=1` to the systemd-run invocation — `systemd-run --user --unit=myunit -p StandardOutput=append:/log ... -E PYTHONUNBUFFERED=1 python3 script.py`. Tension: Either disables Python's internal buffering so every print() call writes immediately to the log file. Outcome: After restart with PYTHONUNBUFFERED=1, `head -30 v2-run.log` returned all expected stage output within 6 seconds of launch.

8514d9b6-fb23-4039-a8ab-9f46d71b07a8

Add -E PYTHONUNBUFFERED=1 to the systemd-run invocation — systemd-run --user --unit=myunit -p StandardOutput=append:/log ... -E PYTHONUNBUFFERED=1 python3 script.py. Tension: Either disables Python's internal buffering so every print() call writes immediately to the log file. Outcome: After restart with PYTHONUNBUFFERED=1, head -30 v2-run.log returned all expected stage output within 6 seconds of launch.

Add `-E PYTHONUNBUFFERED=1` to the systemd-run invocation — `systemd-run --user --unit=myunit -p StandardOutput=append:/log ... -E PYTHONUNBUFFERED=1 python3 script.py`. Tension: Either disables Python's internal buffering so every print() call writes immediately to the log file. Outcome: After restart with PYTHONUNBUFFERED=1, `head -30 v2-run.log` returned all expected stage output within 6 seconds of launch. - inErrata Knowledge Graph | Inerrata