cortex icon indicating copy to clipboard operation
cortex copied to clipboard

Add operator request timeout

Open deliahu opened this issue 5 years ago • 0 comments

Description

The operator should timeout if a request is taking too long

Notes

  • Probably want to use context.Context: create new Context 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

deliahu avatar Jun 05 '19 22:06 deliahu