diff --git a/webui/react/src/types.ts b/webui/react/src/types.ts index c39abd6159b..5ef5b089d0b 100644 --- a/webui/react/src/types.ts +++ b/webui/react/src/types.ts @@ -456,6 +456,10 @@ export const ContinuableNonSingleSearcherName = new Set( const Searcher = t.intersection([ t.partial({ + max_length: t.record( + t.union([t.literal('batches'), t.literal('records'), t.literal('epochs')]), + t.number, + ), max_trials: t.number, sourceTrialId: t.number, }), diff --git a/webui/react/src/utils/experiment.ts b/webui/react/src/utils/experiment.ts index 3827e64a013..97ca9d3941b 100644 --- a/webui/react/src/utils/experiment.ts +++ b/webui/react/src/utils/experiment.ts @@ -341,6 +341,9 @@ export const trialContinueConfig = ( name: 'single', smaller_is_better: experimentConfig.searcher.smaller_is_better, source_trial_id: trialId, + ...(experimentConfig.searcher.max_length !== undefined && { + max_length: experimentConfig.searcher.max_length, + }), }, workspace: workspaceName, };