mirror of
https://github.com/cirruslabs/orchard.git
synced 2026-09-30 12:01:15 +02:00
/exec API: drop session reconnection support (#487)
This commit is contained in:
@@ -36,7 +36,6 @@ var noExperimentalRPCV2 bool
|
||||
var experimentalPingInterval time.Duration
|
||||
var experimentalDisableDBCompression bool
|
||||
var workerOfflineTimeout time.Duration
|
||||
var execSessionRetentionTTL time.Duration
|
||||
var execSSHConnectionKeepaliveInterval time.Duration
|
||||
var synthetic bool
|
||||
|
||||
@@ -92,8 +91,6 @@ func newRunCommand() *cobra.Command {
|
||||
"duration (e.g. 60s or 5m30s) after which a worker is considered offline for the purposes "+
|
||||
"of scheduling (no new VMs will be scheduled on such worker and already assigned VMs will be "+
|
||||
"marked as failed)")
|
||||
cmd.Flags().DurationVar(&execSessionRetentionTTL, "exec-session-retention-ttl", 10*time.Minute,
|
||||
"duration to retain reconnectable exec session history after the command exits")
|
||||
cmd.Flags().DurationVar(&execSSHConnectionKeepaliveInterval, "exec-ssh-connection-keepalive-interval", 30*time.Second,
|
||||
"interval between SSH keepalive requests sent by the controller for shared exec connections")
|
||||
|
||||
@@ -156,7 +153,6 @@ func runController(cmd *cobra.Command, args []string) (err error) {
|
||||
controller.WithListenAddr(address),
|
||||
controller.WithDataDir(dataDir),
|
||||
controller.WithWorkerOfflineTimeout(workerOfflineTimeout),
|
||||
controller.WithExecSessionRetentionTTL(execSessionRetentionTTL),
|
||||
controller.WithExecSSHConnectionKeepaliveInterval(execSSHConnectionKeepaliveInterval),
|
||||
controller.WithLogger(logger),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user