Skip to content

Commit

Permalink
5 retries
Browse files Browse the repository at this point in the history
  • Loading branch information
BioWilko committed Oct 3, 2024
1 parent 8fe0faf commit 3202d54
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions roz_scripts/utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ def execute(
if resp.status.succeeded >= 1:
return 0

if resp.status.failed >= 3:
if resp.status.failed > 5:
api_instance.delete_namespaced_job(name=f"roz-{job_id}", namespace=namespace)

api_instance.create_namespaced_job(
Expand All @@ -228,7 +228,7 @@ def execute(
job_completed = True
break

if resp.status.failed >= 3:
if resp.status.failed > 5:
api_instance.delete_namespaced_job(name=f"roz-{job_id}", namespace=namespace)
returncode = 1
job_completed = True
Expand Down

0 comments on commit 3202d54

Please sign in to comment.