From 6a3759259c7fe51171bf2cf6af45637857a2a140 Mon Sep 17 00:00:00 2001 From: Robert Izzard <r.izzard@surrey.ac.uk> Date: Tue, 16 Nov 2021 20:26:54 +0000 Subject: [PATCH] update where HPC_force_join is checked --- binarycpython/utils/HPC.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/binarycpython/utils/HPC.py b/binarycpython/utils/HPC.py index a6757b118..a4916d0c0 100644 --- a/binarycpython/utils/HPC.py +++ b/binarycpython/utils/HPC.py @@ -92,12 +92,14 @@ class HPC(condor,slurm): print("found {} and {}".format(file,savedfile)) # check for joiningfile again - if os.path.exists(joiningfile): + if self.grid_options['HPC_force_join'] == 1: + print("Forcing join because HPC_force_join is set") + elif os.path.exists(joiningfile): if vb: print("cannot join: joiningfile exists at {}".format(joiningfile)) return False elif vb: - print("joiningfile does not exist") + print("joiningfile does not exist : can join") if vb: print("returning True from HPC_can_join()") -- GitLab