mirror of
https://github.com/gitpod-io/gitpod.git
synced 2025-12-08 17:36:30 +00:00
* Make backend-plugin readiness a condition of IDE readiness * Add compatibility to `2022.3.3` * fixup * Observe ide readiness as Inf after 11 seconds * shutdown after 10 minutes * fix hot-deploy.sh * Add shutdown reason * address feedback * Add Feature Flags * fixup * fix * Add one line log * address feedback
15 lines
404 B
Go
15 lines
404 B
Go
// Copyright (c) 2024 Gitpod GmbH. All rights reserved.
|
|
// Licensed under the GNU Affero General Public License (AGPL).
|
|
// See License.AGPL.txt in the project root for license information.
|
|
|
|
package shared
|
|
|
|
const (
|
|
IDEReadyDurationTotalMaxBucketSecond = 10
|
|
ExitCodeReasonIDEReadinessTimedOut = 2
|
|
)
|
|
|
|
func IsExpectedShutdown(exitCode int) bool {
|
|
return exitCode == ExitCodeReasonIDEReadinessTimedOut
|
|
}
|