typo
This commit is contained in:
parent
dd6eb9bcbb
commit
318955865c
@ -13,13 +13,13 @@ def submit_job(cluster, site, maximum_duration_minutes, checkpoint_minutes, is_b
|
|||||||
reservation_duration,\
|
reservation_duration,\
|
||||||
job_type=job_type,\
|
job_type=job_type,\
|
||||||
additional_options=f"--checkpoint {checkpoint}",\
|
additional_options=f"--checkpoint {checkpoint}",\
|
||||||
command=f"{path_to_script} {command}"), site)])[0]
|
command=f"{path}/{script} {path} {command}"), site)])[0]
|
||||||
return oar_job_id
|
return oar_job_id
|
||||||
|
|
||||||
def wait_for_completion(oar_job_id, site, sleep_time):
|
def wait_for_completion(oar_job_id, site, sleep_time):
|
||||||
state = "Running"
|
state = "Running"
|
||||||
while state != "Terminated" and state != "Error":
|
while state != "Terminated" and state != "Error":
|
||||||
time.sleep(sleeping_time)
|
time.sleep(sleep_time)
|
||||||
info = get_oar_job_info(oar_job_id, site)
|
info = get_oar_job_info(oar_job_id, site)
|
||||||
state = info["state"]
|
state = info["state"]
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user