Skip to content

Commit

Permalink
add a bit more logging + fix status comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
truib committed Mar 21, 2024
1 parent bea1abb commit 2e8e0fd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tasks/deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,9 @@ def check_job_status(job_dir):
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:
log(f"{fn}(): job status is {job_status} (compare against {job_metadata.JOB_RESULT_SUCCESS})\n")

if job_status == 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")
return True
Expand Down

0 comments on commit 2e8e0fd

Please sign in to comment.