Function antithesis_sdk::lifecycle::setup_complete

source ·
pub fn setup_complete(details: &Value)
Expand description

Indicates to Antithesis that setup has completed. Call this function when your system and workload are fully initialized. After this function is called, Antithesis will take a snapshot of your system and begin injecting faults.

Calling this function multiple times or from multiple processes will have no effect. Antithesis will treat the first time any process called this function as the moment that the setup was completed.


use serde_json::{json, Value};
use antithesis_sdk::lifecycle;

let (num_nodes, main_id) = (10, "n-001");

let startup_data: Value = json!({
    "num_nodes": num_nodes,
    "main_node_id": main_id,