From 476a4efa46b9aefbfabd8f9919edf31800f5495b Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Wed, 28 Dec 2022 15:35:26 -0500 Subject: [PATCH] fix: use -u in Procfile to unbuffer python output Without this, logs don't get written out immediately, causing tests to fail. --- tests/apps/python/Procfile | 8 ++++---- tests/apps/python/second.Procfile | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/apps/python/Procfile b/tests/apps/python/Procfile index 88d4d849f..77b9a38ff 100644 --- a/tests/apps/python/Procfile +++ b/tests/apps/python/Procfile @@ -3,11 +3,11 @@ ############################### # Procfile for development using the new threaded worker (scheduler, twitter stream and delayed job) -cron: python3 worker.py -web: python3 web.py # testing inline comment -worker: python3 worker.py +cron: python3 -u worker.py +web: python3 -u web.py first.Procfile # testing inline comment +worker: python3 -u worker.py custom: echo -n -release: python3 release.py +release: python3 -u release.py # Old version with separate processes (use this if you have issues with the threaded version) diff --git a/tests/apps/python/second.Procfile b/tests/apps/python/second.Procfile index 66d57acc6..9c0e25d2e 100644 --- a/tests/apps/python/second.Procfile +++ b/tests/apps/python/second.Procfile @@ -1 +1 @@ -web: python3 web.py second.Procfile +web: python3 -u web.py second.Procfile