INNER CODE UNIT · Go

lifecycleErr

daptin/daptin · main.go:617

	case lifecycleErr = <-serveErrors:
		log.Errorf("Server stopped unexpectedly: %v", lifecycleErr)
	case lifecycleErr = <-runtimeInstance.Errors():
		log.Errorf("Runtime service stopped unexpectedly: %v", lifecycleErr)
	}
	gate.SetReady(false)
	stopSignals()

	shutdownCtx, cancelShutdown := context.WithTimeout(context.Background(), *shutdownTimeout)
	defer cancelShutdown()
	_ = runtimeInstance.Quiesce() // Drain reports any quiesce error below.

	delay := time.NewTimer(*shutdownReadinessDelay)
	select {
	case <-delay.C:
	case <-shutdownCtx.Done():
		delay.Stop()
	}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…