From 831367c30b308a64506a2d0adf347a86101fb16c Mon Sep 17 00:00:00 2001 From: Athanasius Date: Wed, 20 Jan 2021 14:43:47 +0000 Subject: [PATCH] Need to flush the journal dir lock file contents after write. --- EDMarketConnector.py | 1 + 1 file changed, 1 insertion(+) diff --git a/EDMarketConnector.py b/EDMarketConnector.py index be76bff1..dd94cbbf 100755 --- a/EDMarketConnector.py +++ b/EDMarketConnector.py @@ -187,6 +187,7 @@ if __name__ == '__main__': # noqa: C901 return False journal_dir_lockfile.write(f"Path: {journal_dir}\nPID: {os_getpid()}\n") + journal_dir_lockfile.flush() logger.trace('Done') return True