Repository navigation
feat: make short worker callback deadlines configurable - #1371
Merged
willkill07 merged 2 commits intoOct 16, 2026
Merged
willkill07 merged 2 commits into
willkill07 merged 2 commits into
Conversation
Signed-off-by: Will Killian <[email protected]>
Contributor
Signed-off-by: Will Killian <[email protected]>
ericevans-nv
approved these changes
Oct 16, 2026
willkill07
deleted the
feat/relay-1005-configurable-callback-deadlines
branch
October 30, 2026 14:46
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
Allow worker plugins to set deadlines for short callbacks instead of always using the fixed 30-second limit. Plugins can define a default and overrides by callback registration name in
relay-plugin.toml.Details
load.callback_timeouts.default_msandload.callback_timeouts.by_namesettings. Values must be positive integer milliseconds. A matching name takes precedence over the plugin default, followed by the existing 30-second default.Compatibility: existing manifests keep their current behavior, and the worker protocol is unchanged. Rust callers that construct
DynamicPluginManifestWorkerLoadorDynamicPluginWorkerLoadContractwith struct literals must add the newcallback_timeoutsfield (useNonefor the existing behavior).Validation:
just test-rust: 5,944 passed (one on retry), with two CLI logging tests failing under inherited logging settings. Both failures passed on a targeted rerun with logging overrides removed and isolated configuration, as used by the suite.uv run pre-commit run: passed, including formatting, Clippy,cargo check, documentation links, and dependency checks.Where should the reviewer start?
Start with
WorkerCallbackTimeoutsincrates/core/src/plugin/dynamic/manifest.rs, then follow deadline selection inWorkerPluginCallback::invoke_asyncincrates/core/src/plugin/dynamic/worker.rs. The tests incrates/core/tests/unit/dynamic_worker_tests.rsexercise the timeout and cancellation behavior.Related Issues: (use one of the action keywords Closes / Fixes / Resolves / Relates to)
Summary by CodeRabbit
relay-plugin.toml.