mirror of
https://github.com/kemko/nomad.git
synced 2026-01-01 16:05:42 +03:00
e2e: shorten restart delay in docker registry task (#26729)
tests that use this local docker registry (docker and podman tests) occasionally flake, I think due to the timeout being reached, despite passing after a restart. > jobs3.go:658: tg 'create-files' task 'create-auth-file' event: Task received by client > jobs3.go:658: tg 'create-files' task 'create-auth-file' event: Building Task Directory > jobs3.go:658: tg 'create-files' task 'create-auth-file' event: Task started by client > jobs3.go:658: tg 'create-files' task 'create-auth-file' event: Exit Code: 1 > jobs3.go:658: tg 'create-files' task 'create-auth-file' event: Task restarting in 16.212149445s > jobs3.go:658: tg 'create-files' task 'create-auth-file' event: Task started by client > jobs3.go:658: tg 'create-files' task 'create-auth-file' event: Exit Code: 0 setting the delay lower will (hopefully) keep within the job timeout. I'm not sure why the `pledge` task apparently flakes like this; I could find no useful info in the logs.
This commit is contained in:
@@ -47,6 +47,10 @@ job "registry-auths" {
|
|||||||
|
|
||||||
group "create-files" {
|
group "create-files" {
|
||||||
|
|
||||||
|
restart {
|
||||||
|
delay = "2s"
|
||||||
|
}
|
||||||
|
|
||||||
# write out the test.sh file into var.helper_dir
|
# write out the test.sh file into var.helper_dir
|
||||||
task "create-helper-file" {
|
task "create-helper-file" {
|
||||||
driver = "pledge"
|
driver = "pledge"
|
||||||
|
|||||||
Reference in New Issue
Block a user