From dfb2200d8d4a9f168bb405c682543f6bf522b633 Mon Sep 17 00:00:00 2001 From: Matthew Jones Date: Wed, 13 Aug 2014 15:39:42 -0400 Subject: [PATCH] Force a flush of the file object prior to closing it when running tasks --- awx/main/tasks.py | 1 + 1 file changed, 1 insertion(+) diff --git a/awx/main/tasks.py b/awx/main/tasks.py index f54d19eba6..aae063a013 100644 --- a/awx/main/tasks.py +++ b/awx/main/tasks.py @@ -404,6 +404,7 @@ class BaseTask(Task): except OSError: pass try: + stdout_handle.flush() stdout_handle.close() except Exception: pass