diff --git a/gga_load_data.py b/gga_load_data.py index 2d9328d6fd2e6070d94eb849b58a5645339ee37f..0dc2c796f861b87fdd26defcb49dae4887cb3a17 100755 --- a/gga_load_data.py +++ b/gga_load_data.py @@ -206,25 +206,25 @@ class LoadData(speciesData.SpeciesData): time.sleep(1) - # Wait for uploads to complete - logging.info("Waiting for import jobs to finish... please wait") - - # Checking job state (only necessary if ran using SLURM) - while True: - try: - # "C" state means the job is completed, no need to wait for it - ret = subprocess.check_output("squeue | grep -v \"C debug\" | grep -v \"JOBID\" || true", - shell=True) - if not len(ret): - break - time.sleep(3) - except subprocess.CalledProcessError as inst: - if inst.returncode == 153: # queue is empty - break - else: - raise - - time.sleep(10) + # # Wait for uploads to complete + # logging.info("Waiting for import jobs to finish... please wait") + # + # # Checking job state (only necessary if ran using SLURM) + # while True: + # try: + # # "C" state means the job is completed, no need to wait for it + # ret = subprocess.check_output("squeue | grep -v \"C debug\" | grep -v \"JOBID\" || true", + # shell=True) + # if not len(ret): + # break + # time.sleep(3) + # except subprocess.CalledProcessError as inst: + # if inst.returncode == 153: # queue is empty + # break + # else: + # raise + # + # time.sleep(10) # Batch renaming --> Throws a critical error at the moment # logging.info("Import finished, now renaming datasets with pretty names")