feat(deploy): set timeout via label #290
No reviewers
Labels
No Label
bug
build
ci/cd
contributing
design
documentation
duplicate
enhancement
help wanted
invalid
meta
question
security
wontfix
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: coop-cloud/abra#290
Loading…
Reference in New Issue
No description provided.
Delete Branch "set_timeout"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Solves coop-cloud/organising#437
A timeout can be specified globally for a recipe using this label:
coop-cloud.${STACK_NAME}.timeout=${TIMEOUT:-120}
. This sets the default timeout to 120s. An app specific timeout can be set using the envTIMEOUT
.Solid stuff, few minor comments also! Thanks!
@ -201,6 +202,15 @@ recipes.
logrus.Fatal(err)
}
timeoutLabel := config.GetLabel(compose, stackName, "timeout")
Since we do this
GetLabel
/strconv.Atoi(timeoutLabel)
twice already, should we also publish aconfig.GetTimeoutLabel
API which does this all internally? Then the surface can be:@ -31,6 +31,8 @@ const (
ResolveImageNever = "never"
)
var WaitTimeout int = 50
Shall we doc string this also and mention
50
is random + legacy choice?bc109d77ec
toc750db465d
f717cb4e14
tod3650b274e