From 0219ca3c2a49d413ffda321a091aff56135ea825 Mon Sep 17 00:00:00 2001 From: Yukio Nozawa Date: Sat, 6 Jan 2024 22:24:49 +0900 Subject: [PATCH] =?UTF-8?q?=E3=82=AB=E3=83=83=E3=83=88=E7=B7=A8=E9=9B=86?= =?UTF-8?q?=E3=81=AE=E6=99=82=E3=81=AB=E8=A4=87=E6=95=B0=E3=81=AE=E3=83=AD?= =?UTF-8?q?=E3=82=B0=E3=83=95=E3=82=A1=E3=82=A4=E3=83=AB=E3=81=8C=E3=81=A7?= =?UTF-8?q?=E3=81=8D=E3=82=8B=E3=81=AF=E3=81=9A=E3=81=8C=E5=85=A8=E9=83=A8?= =?UTF-8?q?=E4=B8=8A=E6=9B=B8=E3=81=8D=E3=81=95=E3=82=8C=E3=81=A6=E3=81=97?= =?UTF-8?q?=E3=81=BE=E3=81=A3=E3=81=A6=E3=81=84=E3=81=9F=E3=81=AE=E3=82=92?= =?UTF-8?q?=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- adapter/cmd.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/adapter/cmd.py b/adapter/cmd.py index 0812dc7..48d1d9a 100644 --- a/adapter/cmd.py +++ b/adapter/cmd.py @@ -141,6 +141,9 @@ def prepareCmdRunner(identifier, cmd, timestamp, onFinished = None, osOperation timestamp, osOperation ) + # Touch the log file here. Without this, the same log file path will be used for all runners since tasks are not executed in this preparation step. + f = osOperation.open(logFilePath, "w") + f.close() runner = CmdRunner(identifier, cmd, logFilePath, onFinished, osOperation) return runner