jina.parsers.orchestrate.pod module#

Argparser module for Pod runtimes

class jina.parsers.orchestrate.pod.PodTypeParams(runtime_cls, role_type)[source]#

Bases: object

Data Class representing possible parameters for each pod type

runtime_cls: str#
role_type: PodRoleType#
jina.parsers.orchestrate.pod.mixin_pod_parser(parser, pod_type='worker')[source]#

Mixing in arguments required by Pod into the given parser. :param parser: the parser instance to which we add arguments :type pod_type: str :param pod_type: the pod_type configured by the parser. Can be either ‘worker’ for WorkerRuntime or ‘gateway’ for GatewayRuntime