Skip to content

Commit

Permalink
APPS-8711: container termination controls (#685)
Browse files Browse the repository at this point in the history
* APPS-8711: container termination controls

* add test
  • Loading branch information
jcodybaker committed May 6, 2024
1 parent 41bfd61 commit 58a5365
Show file tree
Hide file tree
Showing 4 changed files with 145 additions and 7 deletions.
37 changes: 30 additions & 7 deletions apps.gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

56 changes: 56 additions & 0 deletions apps_accessors.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

49 changes: 49 additions & 0 deletions apps_accessors_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions apps_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ var (
},
InstanceSizeSlug: "professional-xs",
InstanceCount: 1,
Termination: &AppServiceSpecTermination{
GracePeriodSeconds: 100,
DrainSeconds: 60,
},
}},
Workers: []*AppWorkerSpec{{
Name: "worker-name",
Expand All @@ -42,6 +46,9 @@ var (
},
InstanceSizeSlug: "professional-xs",
InstanceCount: 1,
Termination: &AppWorkerSpecTermination{
GracePeriodSeconds: 100,
},
}},
StaticSites: []*AppStaticSiteSpec{{
Name: "static-name",
Expand All @@ -63,6 +70,9 @@ var (
},
InstanceSizeSlug: "professional-xs",
InstanceCount: 1,
Termination: &AppJobSpecTermination{
GracePeriodSeconds: 100,
},
}},
Databases: []*AppDatabaseSpec{{
Name: "db",
Expand Down

0 comments on commit 58a5365

Please sign in to comment.