Skip to content

Commit

Permalink
[#1401] Retry on AWS Spot Instance interruption
Browse files Browse the repository at this point in the history
  • Loading branch information
Emanuel Petr authored and fivitti committed Jun 5, 2024
1 parent ad5c94f commit 46b961b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,15 @@ variables:
# not cloned by default.
GIT_SUBMODULE_STRATEGY: none

default:
# AWS can interrupt the spot instance anytime, so let's retry the job when
# the interruption event happens to avoid a pipeline failure.
retry:
max: 2
when:
- runner_system_failure
- stuck_or_timeout_failure

# stages order
stages:
- checks
Expand Down

0 comments on commit 46b961b

Please sign in to comment.