From 7b0ee44db87b1ee4d8540fde9a1d6a9e06947a68 Mon Sep 17 00:00:00 2001 From: aldbr Date: Mon, 9 Dec 2024 10:41:40 +0100 Subject: [PATCH] fix(wms): integrity check failure in RemoteRunner --- .../WorkloadManagementSystem/Utilities/RemoteRunner.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/DIRAC/WorkloadManagementSystem/Utilities/RemoteRunner.py b/src/DIRAC/WorkloadManagementSystem/Utilities/RemoteRunner.py index 7125887fd4d..3bcf20f78a4 100644 --- a/src/DIRAC/WorkloadManagementSystem/Utilities/RemoteRunner.py +++ b/src/DIRAC/WorkloadManagementSystem/Utilities/RemoteRunner.py @@ -87,6 +87,12 @@ def execute(self, command, workingDirectory=".", numberOfProcessors=1, cleanRemo # Get inputs from the current working directory inputs = os.listdir(workingDirectory) inputs.remove(os.path.basename(self.executable)) + # We need to remove the standard output/error files if present + # as they might change during the execution of the application and fail the integrity check + if "std.out" in inputs: + inputs.remove("std.out") + if "std.err" in inputs: + inputs.remove("std.err") self.log.verbose("The executable will be sent along with the following inputs:", ",".join(inputs)) # Request the whole directory as output outputs = ["/"]