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
- jina.parsers.orchestrate.pod.mixin_pod_runtime_args_parser(arg_group, pod_type='worker')[source]#
Mixin for runtime arguments of pods :param arg_group: the parser instance or args group to which we add arguments :param pod_type: the pod_type configured by the parser. Can be either ‘worker’ for WorkerRuntime or ‘gateway’ for GatewayRuntime