- 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>
9 lines
336 B
Rust
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 ===");
|
|
}
|