Skip to content

Commit 4421b17

Browse files
aldbrweb-flow
authored andcommitted
sweep: DIRACGrid#7940 fix: RemoteRunner integrity failures with std.out
1 parent c4b7a6e commit 4421b17

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/DIRAC/WorkloadManagementSystem/Utilities/RemoteRunner.py

+6
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,12 @@ def execute(self, command, workingDirectory=".", numberOfProcessors=1, cleanRemo
6363
# Get inputs from the current working directory
6464
inputs = os.listdir(workingDirectory)
6565
inputs.remove(os.path.basename(self.executable))
66+
# We need to remove the standard output/error files if present
67+
# as they might change during the execution of the application and fail the integrity check
68+
if "std.out" in inputs:
69+
inputs.remove("std.out")
70+
if "std.err" in inputs:
71+
inputs.remove("std.err")
6672
self.log.verbose("The executable will be sent along with the following inputs:", ",".join(inputs))
6773
# Request the whole directory as output
6874
outputs = ["/"]

0 commit comments

Comments
 (0)