Skip to content

Commit

Permalink
fix: avoid restarting module if download failure
Browse files Browse the repository at this point in the history
  • Loading branch information
IgnacioHeredia committed Aug 26, 2024
1 parent 903615a commit c7e0932
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions etc/try_me/nomad.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,14 @@ job "try-${JOB_UUID}" {
memory = 2000 # 2GB
memory_max = 2000 # 2GB
}

# Do not try to restart a try-me job if it failis to launch deepaas
# This is usually due to the fact that the Docker image took too long to download
# and failed with error: `Failed to pull `ai4oshub/...`: context deadline` exceeded
# Restarting in the same node won't fix the connectivity issues
restart {
attempts = 0
mode = "fail"
}

}
Expand Down

0 comments on commit c7e0932

Please sign in to comment.