faust.app.service
¶
-
class
faust.app.service.
AppService
(app: faust.app.service.App, **kwargs) → None[source]¶ Service responsible for starting/stopping an application.
-
on_init_dependencies
() → Iterable[mode.types.services.ServiceT][source]¶ Callback to be used to add service dependencies.
Return type: Iterable
[ServiceT
[]]
-
logger
= <Logger faust.app.service (WARNING)>¶
-
coroutine
on_first_start
(self) → None[source]¶ Called only the first time the service is started.
Return type: None
-
coroutine
on_init_extra_service
(self, service: Union[mode.types.services.ServiceT, typing.Type[mode.types.services.ServiceT]]) → mode.types.services.ServiceT[source]¶ Return type: ServiceT
[]
-
coroutine
on_restart
(self) → None[source]¶ Called every time when the service is restarted.
Return type: None
-
coroutine
on_shutdown
(self) → None[source]¶ Called every time after the service is stopped/restarted
Return type: None
-
coroutine
on_start
(self) → None[source]¶ Called every time before the service is started/restarted.
Return type: None
-
coroutine
on_started
(self) → None[source]¶ Called every time after the service is started/restarted.
Return type: None
-