Skip to main content

Execution timeouts

Stops execution when it exceeds a time budget.

Practices implemented

Applies to

  • GraphQL servers
  • Gateways and proxies

Configuration (suggested defaults)

ParameterDefaultNotes
executionTimeoutMs3000Abort execution after a time budget.
cancellationStrategybestEffortCancel ongoing work where possible.

Implementation notes

  • Apply timeouts at the operation level.
  • Ensure resolvers can observe cancellation.
  • Log timeout failures with trace IDs.

Cautions

  • Long-running operations may fail unexpectedly.
  • Cancellation support varies across runtimes.

Problems addressed