Skip to main content

Module lifecycle

Module lifecycle 

Source
Expand description

The lifecycle module contains functions which inform the Antithesis environment that particular test phases or milestones have been reached.

The constant LOCAL_OUTPUT is associated with local logging, which is one of the local execution modes.

Functionsยง

send_event
Indicates to Antithesis that a certain event has been reached. It sends a structured log message to Antithesis that you may later use to aid debugging.
setup_complete
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.