"""Argparser module for distributed runtimes"""
from jina.parsers.helper import add_arg_group
"""Mixing in arguments required by :class:`BaseDeployment` into the given parser.
:param parser: the parser instance to which we add arguments
gp = add_arg_group(parser, title='Distributed')
help='Do not display the streaming of remote logs on local console',
The files on the host to be uploaded to the remote
workspace. This can be useful when your Deployment has more
file dependencies beyond a single YAML file, e.g.
Python files, data files.
- currently only flatten structure is supported, which means if you upload `[./foo/a.py, ./foo/b.pp, ./bar/c.yml]`, then they will be put under the _same_ workspace on the remote, losing all hierarchies.
- by default, `--uses` YAML file is always uploaded.
- uploaded files are by default isolated across the runs. To ensure files are submitted to the same workspace across different runs, use `--workspace-id` to specify the workspace.