jina.orchestrate.pods package

    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

    • abstract start()

      Start the BasePod. This method calls start() in threading.Thread or multiprocesssing.Process. .. #noqa: DAR201

    • abstract 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.

    • start()[source]

      Start the Pod. This method calls in threading.Thread or multiprocesssing.Process. .. #noqa: DAR201

    • join(\args, **kwargs*)[source]

      Joins the Pod. This method calls in threading.Thread or .

      • Parameters

        • args – extra positional arguments to pass to join