mode.types.supervisors
¶
Type classes for mode.supervisors
.
- class mode.types.supervisors.SupervisorStrategyT(*services: ServiceT, max_restarts: Union[timedelta, int, float, str] = 100.0, over: Union[timedelta, int, float, str] = 1.0, raises: Optional[Type[BaseException]] = None, replacement: Optional[Callable[[ServiceT, int], Awaitable[ServiceT]]] = None, **kwargs: Any)¶
Base type for all supervisor strategies.
- async_exit_stack: AsyncExitStack¶
- exit_stack: ExitStack¶
- max_restarts: float¶
- over: float¶
- raises: Type[BaseException]¶
- replacement: Optional[ReplacementT]¶
- shutdown_timeout: float¶
- abstract wakeup() None ¶