Skip to content

Commit 65022c6

Browse files
committed
Add a wall time limit to eval-server
1 parent eadb9e9 commit 65022c6

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/tools/eval_server.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,8 @@ async fn evaluate(
300300
if let Some(comp_group) = dag.data.execution_groups.get_mut(&cuuid) {
301301
for exec in &mut comp_group.executions {
302302
exec.limits.cpu_time(state.opt.compilation_time_limit);
303+
exec.limits
304+
.wall_time(state.opt.compilation_time_limit * 2.0);
303305
exec.limits
304306
.memory(state.opt.compilation_memory_limit * 1024);
305307
}
@@ -332,6 +334,8 @@ async fn evaluate(
332334

333335
exec.limits
334336
.cpu_time(payload.time_limit.unwrap_or(state.opt.max_time_limit));
337+
exec.limits
338+
.wall_time(payload.time_limit.unwrap_or(state.opt.max_time_limit) * 2.0);
335339
exec.limits
336340
.memory(payload.memory_limit.unwrap_or(state.opt.max_memory_limit) * 1024);
337341

0 commit comments

Comments
 (0)