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

Try running multiple times while compiling too

parent ff22513c
Branches
No related tags found
No related merge requests found
......@@ -41,6 +41,7 @@ fn run_loop(
) {
let submission = receiver.recv().expect("Failed to recv in queue channel");
loop {
let judge_start_instant = Local::now().naive_local();
info!("Starting to compile");
......@@ -204,6 +205,12 @@ fn run_loop(
let last_execute_stats = last_execute_stats.unwrap();
isolate::reset(isolate_executable_path, 0).expect("Reset failed");
if let(last_execute_stats.status) = RunStatus::TimeLimitExceeded {
if last_execute_stats.time_ms == 0 { continue; }
}
submission_completion_sender
.send(SubmissionCompletion {
uuid: submission.uuid.to_string(),
......@@ -225,8 +232,7 @@ fn run_loop(
error_output: stderr,
})
.expect("Coudln't send back submission completion");
isolate::reset(isolate_executable_path, 0).expect("Reset failed");
}
}
pub fn setup_workers(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment