StrictExecutionCallback#
- class openstef_beam.benchmarking.StrictExecutionCallback[source]#
Bases:
BenchmarkCallbackCallback to ensure strict benchmark execution with immediate error termination.
This callback enforces strict error handling by re-raising any errors that occur during benchmark execution, causing the pipeline to immediately terminate rather than continuing with remaining targets.
Use this callback during development, testing, or validation workflows where you need to ensure all targets complete successfully before proceeding.
- on_error(runner: BenchmarkPipeline[Any, Any], target: BenchmarkTarget, error: Exception) None[source]#
Re-raise any error to immediately terminate benchmark execution.
- Parameters:
runner (
BenchmarkPipeline[Any,Any])target (
BenchmarkTarget)error (
Exception)
- Return type:
None