jina.peapods.pods.factory module

class jina.peapods.pods.factory.PodFactory[source]

Bases: object

A PodFactory is a factory class, abstracting the Pod creation

static build_pod(args, needs=None, infrastructure=InfrastructureType.JINA)[source]

Build an implementation of a BasePod interface

Parameters
  • args (Namespace) – pod arguments parsed from the CLI.

  • needs (Optional[Set[str]]) – pod names of preceding pods

  • infrastructure (InfrastructureType) – infrastructure where the flow should run

Return type

BasePod

Returns

the created BasePod