taps.apps.configs.failures¶
FailureInjectionConfig
¶
Bases: AppConfig
Failure injection configuration.
Parameters:
-
name
(Literal[str]
, default:'failures'
) –Application name.
-
base
(str
) –Base app to inject failures into.
-
config
(Dict[str, Any]
, default:{}
) –Base app configuration.
-
failure_rate
(float
, default:1
) –Task failure rate.
-
failure_type
(FailureType
, default:<FailureType.DEPENDENCY: 'dependency'>
) –Task failure type.
get_app
¶
get_app() -> App
Create an application instance from the config.