Skip to content

Rename evaluationTimeout to timeoutMs#3508

Merged
kenhuuu merged 2 commits into
masterfrom
rename-evalTimeout
Jul 15, 2026
Merged

Rename evaluationTimeout to timeoutMs#3508
kenhuuu merged 2 commits into
masterfrom
rename-evalTimeout

Conversation

@kenhuuu

@kenhuuu kenhuuu commented Jul 4, 2026

Copy link
Copy Markdown
Contributor

Collapses the per-request execution timeout onto a single name, timeoutMs, across the server config, the script with() token, the internal executor, error messages, and all five GLV APIs. The legacy evaluationTimeout and scriptEvaluationTimeout names are removed with no alias.

The point of the change was to eliminate a dual-name inconsistency, so it made little sense to stop halfway. The 4.x wire protocol already used timeoutMs while the config key, script token, and three drivers still spoke evaluationTimeout — the server even resolved the effective timeout by checking both names. Renaming only some surfaces would relocate that confusion rather than remove it, and leaving the driver builder methods on the old name would trade a wire-vs-config mismatch for a wire-vs-API one.

Review guide:
This is another PR that is mostly a search and replace of evaluationTimeout to timeoutMs. What's important for other reviewers to decide is whether this change should have applied as widely as it did. This effectively changes it everywhere including in the server where the YAML will just read timeoutMs. evaluationTimeout is arguably a more descriptive name, but an effort was made to try and explain what timeoutMs is everywhere that it is used.

VOTE +1

Comment thread docs/src/dev/provider/index.asciidoc Outdated
Comment thread docs/src/reference/gremlin-applications.asciidoc Outdated
Comment thread docs/src/reference/gremlin-applications.asciidoc Outdated
Comment thread docs/src/reference/gremlin-applications.asciidoc Outdated
Comment thread docs/src/upgrade/release-4.x.x.asciidoc Outdated
Comment thread docs/src/upgrade/release-4.x.x.asciidoc Outdated
Comment thread docs/src/upgrade/release-4.x.x.asciidoc
kenhuuu added 2 commits July 14, 2026 14:41
Collapses the per-request execution timeout onto a single name, `timeoutMs`,
across the server config, the script `with()` token, the internal executor,
error messages, and all five GLV APIs. The legacy `evaluationTimeout` and
`scriptEvaluationTimeout` names are removed with no alias.

The point of the change was to eliminate a dual-name inconsistency, so it made
little sense to stop halfway. The 4.x wire protocol already used `timeoutMs`
while the config key, script token, and three drivers still spoke
`evaluationTimeout` — the server even resolved the effective timeout by
checking both names. Renaming only some surfaces would relocate that confusion
rather than remove it, and leaving the driver builder methods on the old name
would trade a wire-vs-config mismatch for a wire-vs-API one.

Assisted-by: Claude Code:claude-opus-4-8
Makes these time-based options consistent with GLVs that already
use the "Millis" suffix rather than no suffix or "Ms". This also
renames timeoutMs to timeoutMillis in the HTTP API as well to make
that consistent as well.

Assisted-by: Claude Code:claude-opus-4-8
@kenhuuu kenhuuu force-pushed the rename-evalTimeout branch from 96ba2de to 85cb2ad Compare July 15, 2026 15:53
@kenhuuu

kenhuuu commented Jul 15, 2026

Copy link
Copy Markdown
Contributor Author

Addressed all feedback and lazy consensus reached so merging.

@kenhuuu kenhuuu merged commit 7cd4413 into master Jul 15, 2026
50 checks passed
@kenhuuu kenhuuu deleted the rename-evalTimeout branch July 15, 2026 16:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants