Files
miti99bot/internal/server/timeouts.go
T
tiennm99 35ad4cb997 feat(server,modules): bootstrap server and module framework
Implements Phases 02 (partial) and 03 of the go-port-cloud-run plan.
Introduces module framework with per-module KV prefix isolation,
health check endpoint, request timeout protection, and comprehensive
test coverage. Cloud Run deployment deferred to Phase 01.

Security hardening: constant-time secret comparison, cron auth bridge,
and secrets stripped from dependency environment exports. Includes
Dockerfile, GitHub CI workflow (vet + race + build), and integration
tests for module lifecycle.
2026-05-08 23:27:12 +07:00

9 lines
276 B
Go

package server
import "time"
// defaultCronTimeout caps a single /cron/{name} invocation. Cloud Run request
// timeout is 60 minutes max, but we keep crons under our HTTP read timeout so
// runaway handlers cannot pin an instance.
const defaultCronTimeout = 5 * time.Minute