Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/commands/benchmark-job/run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -326,9 +326,7 @@ export async function runBenchmarkJob(options: RunOptions) {
const agentConfigs = parsedAgents.map((agent) => ({
name: agent.name,
modelName: agent.model,
timeoutSeconds: options.timeout
? parseInt(options.timeout, 10)
: undefined,
timeoutSeconds: options.timeout ? parseInt(options.timeout, 10) : 7200, // Default to 2 hours
environmentVariables:
Object.keys(providedEnvVars).length > 0 ? providedEnvVars : undefined,
secrets,
Expand All @@ -345,7 +343,9 @@ export async function runBenchmarkJob(options: RunOptions) {

// Output result
if (!options.output || options.output === "text") {
console.log(`Benchmark job created: ${job.id}`);
console.log(
`Benchmark job created: ${job.id} (agent timeout = ${agentConfigs[0].timeoutSeconds}s)`,
);
console.log(`Follow the run with rli benchmark-job watch ${job.id}`);
} else {
output(job, { format: options.output, defaultFormat: "json" });
Expand Down
2 changes: 2 additions & 0 deletions src/screens/BenchmarkJobCreateScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -539,6 +539,8 @@ export function BenchmarkJobCreateScreen({
if (!isNaN(timeout) && timeout > 0) {
config.timeoutSeconds = timeout;
}
} else {
config.timeoutSeconds = 7200; // Default to 2 hours
}

return config;
Expand Down
Loading