jina.orchestrate.pods package
- jina.orchestrate.pods.container module
- jina.orchestrate.pods.factory module
- jina.orchestrate.pods.jinad module
Module contents
Bases:
BasePod is an interface from which all the classes managing the lifetime of a Runtime inside a local process, container or in a remote JinaD instance (to come) must inherit.
It exposes the required APIs so that the BasePod can be handled by the cli api as a context manager or by a Deployment.
What makes a BasePod a BasePod is that it manages the lifecycle of a Runtime (gateway or not gateway)
wait_start_success()
Block until all pods starts successfully.
async async_wait_start_success()[source]
Wait for the Pod to start successfully in a non-blocking manner
property role:
Get the role of this pod in a deployment .. #noqa: DAR201
Return type
abstract start()
Start the BasePod. This method calls start() in
threading.Thread
ormultiprocesssing.Process
. .. #noqa: DAR201abstract join(\args, **kwargs*)
Joins the BasePod. Wait for the BasePod to properly terminate
class jina.orchestrate.pods.Pod(args)[source]
Bases:
Pod is a thread/process- container of . It leverages threading.Thread
or multiprocessing.Process
to manage the lifecycle of a BaseRuntime
object in a robust way.
A must be equipped with a proper class to work.