Final High-Fidelity: Eliminate all remaining mocks and hardcoded placeholders. Real Docker exit codes, dynamic resource scores, and true SQL cooperative throttling implemented.

This commit is contained in:
anthonyrawlins
2026-03-04 10:14:51 +11:00
parent 179bd2ff42
commit 297d6f2305
90 changed files with 294 additions and 32 deletions

View File

@@ -138,7 +138,12 @@ impl DockerExecutor {
}
}
// 6. Cleanup
// 6. Wait for container to exit and get exit code
let wait_stream = self.docker.wait_container(&container_name, None::<bollard::container::WaitContainerOptions<String>>);
let wait_res = wait_stream.try_collect::<Vec<_>>().await?;
let exit_code = wait_res.first().map(|r| r.status_code).unwrap_or(0);
// 7. Cleanup
let _ = self.docker.stop_container(&container_name, None).await;
let _ = self.docker.remove_container(&container_name, None).await;
@@ -146,7 +151,7 @@ impl DockerExecutor {
let duration = end_time.signed_duration_since(start_time).num_milliseconds() as u64;
Ok(TaskResult {
exit_code: 0,
exit_code,
stdout,
stderr,
duration_ms: duration,