cortex
cortex copied to clipboard
Add operator request timeout
Description
The operator should timeout if a request is taking too long
Notes
- Probably want to use
context.Context
: create newContext
for every request, and that context gets sent down to all downstream async requests (e.g. uploading to S3) to determine timeout -
errgroup supports
context.Context
Resources
- https://ieftimov.com/post/make-resilient-golang-net-http-servers-using-timeouts-deadlines-context-cancellation/ https://blog.golang.org/context