Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion examples/apps/hello_ankaios.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ async fn main() {
}

// Wait until the workload reaches the running state
match ank.wait_for_workload_to_reach_state(workload_instance_name, WorkloadStateEnum::Running).await {
match ank.wait_for_workload_to_reach_state(workload_instance_name.clone(), WorkloadStateEnum::Running).await {
Ok(()) => {
println!("Workload reached the RUNNING state.");
}
Expand All @@ -75,5 +75,8 @@ async fn main() {
);
}

// Delete the workload
let _response = ank.delete_workload(workload_instance_name.workload_name).await.expect("Failed to delete workload");

tokio::time::sleep(Duration::from_secs(5)).await;
}