taps.apps.failures.app¶
FailureInjectionApp
¶
FailureInjectionApp(
base_config: AppConfig,
failure_rate: float,
failure_type: FailureType,
)
Failure injection application.
Warning
This app will intercept the tasks submitted by the base application and modify the wrapped functions with the injected errors. Thus, failure injection may cause incompatibilities with executors that cannot serialize tasks by value (i.e., those that only serialize submitted functions by reference).
Parameters:
-
base_config
(AppConfig
) –Configuration for the base application to inject failures into.
-
failure_type
(FailureType
) –The type of failure to inject.
-
failure_rate
(float
) –The probability of injecting a failure into any given task.
Source code in taps/apps/failures/app.py
close
¶
run
¶
Run the application.
Parameters: