Skip to content
Snippets Groups Projects
Commit ff22513c authored by Fernando K's avatar Fernando K
Browse files

Try running multiple times if it fails weird

parent c78effd6
No related branches found
No related tags found
No related merge requests found
......@@ -113,7 +113,8 @@ pub fn execute(
command: &CommandTuple,
execute_params: &ExecuteParams,
) -> Result<RunStats, CommandError> {
run(
loop {
let res = run(
isolate_executable_path,
isolate_box,
RunParams {
......@@ -125,7 +126,16 @@ pub fn execute(
time_limit_ms: execute_params.time_limit_ms,
command,
},
)
);
match res {
Ok(RunStats {
status: RunStatus::TimeLimitExceeded,
time_ms: Some(0),
..
}) => continue,
_ => return res,
}
}
}
pub fn run(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment