Skip to content

Commit

Permalink
add missing ')'
Browse files Browse the repository at this point in the history
  • Loading branch information
truib committed Mar 15, 2024
1 parent 2a92aa9 commit bea1abb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tasks/deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ def check_job_status(job_dir):
job_id = job_metadata.determine_job_id_from_job_directory(job_dir)
if job_id == 0:
# could not determine job id, return False
log(f"{fn}(): could not determine job id from directory '{job_dir}'\n"
log(f"{fn}(): could not determine job id from directory '{job_dir}'\n")
return False

job_result_file = f"_bot_job{job_id}.result"
Expand All @@ -186,16 +186,16 @@ def check_job_status(job_dir):
job_status = job_result[job_metadata.JOB_RESULT_STATUS]
else:
# case (1): no result file or no status --> return False
log(f"{fn}(): no result file '{job_result_file_path}' or reading it failed\n"
log(f"{fn}(): no result file '{job_result_file_path}' or reading it failed\n")
return False

if job_status is job_metadata.JOB_RESULT_SUCCESS:
# case (2): result file && status = SUCCESS --> return True
log(f"{fn}(): found status 'SUCCESS' from '{job_result_file_path}'\n"
log(f"{fn}(): found status 'SUCCESS' from '{job_result_file_path}'\n")
return True
else:
# case (3): result file && status = FAILURE --> return False
log(f"{fn}(): found status 'FAILURE' from '{job_result_file_path}'\n"
log(f"{fn}(): found status 'FAILURE' from '{job_result_file_path}'\n")
return False


Expand Down

0 comments on commit bea1abb

Please sign in to comment.