INNER CODE UNIT · Go

sig

WaveSpeedAI/waverless · cmd/main.go:29

	sig := <-quit
	logger.InfoCtx(app.ctx, "Received exit signal: %v", sig)

	// Graceful shutdown (30 seconds timeout)
	if err := app.Shutdown(30 * time.Second); err != nil {
		logger.ErrorCtx(app.ctx, "Application shutdown failed: %v", err)
		os.Exit(1)
	}

	logger.InfoCtx(app.ctx, "Application safely exited")
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…