appsmith icon indicating copy to clipboard operation
appsmith copied to clipboard

[Feature]: Make client-side timeout values configurable via environment variables

Open m-k8s opened this issue 9 months ago • 3 comments

Is there an existing issue for this?

  • [x] I have searched the existing issues

Summary

Several timeout constants in ApiConstants.tsx are currently hardcoded and cannot be changed without modifying the source code and rebuilding the application:

  • REQUEST_TIMEOUT_MS (20s) - General API request timeout
  • DEFAULT_ACTION_TIMEOUT (10s) - Default action timeout
  • DEFAULT_EXECUTE_ACTION_TIMEOUT_MS (15s) - Action execution timeout
  • DEFAULT_TEST_DATA_SOURCE_TIMEOUT_MS (30s) - Datasource test timeout
  • DEFAULT_APPSMITH_AI_QUERY_TIMEOUT_MS (60s) - AI query timeout
  • FILE_UPLOAD_TRIGGER_TIMEOUT_MS (60s) - File upload timeout

Why should this be worked on?

Different deployment environments have different network characteristics and backend response times. Administrators need the ability to tune client-side timeout values to match their infrastructure requirements without rebuilding the application.

The feature should follow the same runtime injection pattern already used for other configuration values (Sentry DSN, Segment key, etc.) via environment variables and window.APPSMITH_FEATURE_CONFIGS.

m-k8s avatar Feb 05 '26 06:02 m-k8s

APP-14875

linear[bot] avatar Feb 05 '26 06:02 linear[bot]

@Nikhil-Nandagopal / @m-k8s if this issue is open, can i work on this?

saikiranpatil avatar Feb 20 '26 20:02 saikiranpatil

Opened a PR implementing this: https://github.com/appsmithorg/appsmith/pull/41748

The PR exposes all seven hardcoded timeout constants via APPSMITH_CLIENT_*_TIMEOUT_MS environment variables, injected at runtime through window.APPSMITH_FEATURE_CONFIGS.timeouts (same pattern used for Sentry DSN, Segment key, etc.). Each value falls back to its existing default when the env var is unset/invalid, so current deployments behave identically until operators opt in.

itsmejay80 avatar Apr 18 '26 22:04 itsmejay80