Service component¶
- class ginkgo.core.Service[source]¶
- started¶
This property returns whether this service has been started
- ready¶
- add_service(service)¶
Add a child service to this service
The service added will be started when this service starts, before its _start() method is called. It will also be stopped when this service stops, before its _stop() method is called.
- remove_service(service)¶
Remove a child service from this service
- start(block_until_ready=True)¶
Starts children and then this service. By default it blocks until ready.
- stop()¶
Stop child services in reverse order and then this service
- serve_forever()¶
Start the service if it hasn’t been already started and wait until it’s stopped.