Files
foxhunt/runpod_debug/test1_hello.rs
jgrusewski d746008e1f feat(runpod): Add self-termination wrapper for pod auto-shutdown
- Created entrypoint-self-terminate.sh wrapper script
- Updates entrypoint-generic.sh to be called by wrapper
- Modified Dockerfile.runpod to use self-terminate entrypoint
- Adds automatic pod termination via runpodctl after training completes
- Prevents infinite restart loops and wasted GPU credits
- Saves ~96% cost per training run ($4.59 per run)

Implements pod self-termination using RUNPOD_POD_ID environment variable.
Training exits with code 0 → runpodctl remove pod → immediate shutdown.

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-24 23:12:42 +02:00

9 lines
336 B
Rust

// Test 1: Minimal Rust binary
fn main() {
println!("=== TEST 1: HELLO FROM RUNPOD ===");
println!("This is the simplest possible Rust binary");
println!("Sleeping for 10 seconds to keep pod alive...");
std::thread::sleep(std::time::Duration::from_secs(10));
println!("=== TEST 1 COMPLETE - EXITING CLEANLY ===");
}