Skip to content

Commit

Permalink
builders: Set backoffLimit to 1 (PROJQUAY-3587) (#1246)
Browse files Browse the repository at this point in the history
Setting the backoffLimit to 1 for kubernetes and kubernetesPodman builds. Prevents subsequent attempts from failing due to the token expiring. Having the job recreate pods is unnecessary as the build manager already has the retry logic.
  • Loading branch information
bcaton85 committed Apr 18, 2022
1 parent b009590 commit 88e86eb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions buildman/manager/executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -602,6 +602,7 @@ def _job_resource(self, token, build_uuid):
},
"spec": {
"activeDeadlineSeconds": self.executor_config.get("MAXIMUM_JOB_TIME", 7200),
"backoffLimit": 1,
"ttlSecondsAfterFinished": self.executor_config.get(
"RETENTION_AFTER_FINISHED", 120
),
Expand Down

0 comments on commit 88e86eb

Please sign in to comment.