Huiwen 92fccc81ef
Build - make backend-plugin readiness a condition of JetBrains IDEs readiness (#19710)
* 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
2024-05-14 18:02:52 +08:00

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
}