Function trigger_killswitch

Source
pub fn trigger_killswitch(reason: &str)
Expand description

Trigger the killswitch to stop the load test run.

This function sets the global CANCELED flag to true, which will cause the test to stop gracefully at the next check point.

§Arguments

  • reason - A string describing why the test is being stopped

§Example

use goose::trigger_killswitch;

// Stop the test due to high error rate
trigger_killswitch("Error rate exceeded 50% threshold");