Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
gitpod-io
GitHub Repository: gitpod-io/gitpod
Path: blob/main/components/supervisor/pkg/shared/constant.go
2500 views
1
// Copyright (c) 2024 Gitpod GmbH. All rights reserved.
2
// Licensed under the GNU Affero General Public License (AGPL).
3
// See License.AGPL.txt in the project root for license information.
4
5
package shared
6
7
const (
8
IDEReadyDurationTotalMaxBucketSecond = 10
9
ExitCodeReasonIDEReadinessTimedOut = 2
10
)
11
12
func IsExpectedShutdown(exitCode int) bool {
13
return exitCode == ExitCodeReasonIDEReadinessTimedOut
14
}
15
16