1
0
mirror of https://github.com/LibreTranslate/LibreTranslate.git synced 2025-11-29 22:08:02 +02:00

Add --secondary arg

This commit is contained in:
Piero Toffanin
2024-07-19 14:14:25 -04:00
parent 236eee1774
commit 2f8ede54d7
4 changed files with 14 additions and 2 deletions

View File

@@ -154,6 +154,12 @@ def get_args():
metavar="<Storage URI>",
help="Shared storage URI to use for multi-process data sharing (e.g. via gunicorn)",
)
parser.add_argument(
"--secondary",
default=DEFARGS['SECONDARY'],
action="store_true",
help="Mark this instance as a secondary instance to avoid conflicts with the primary node in multi-node setups",
)
parser.add_argument(
"--load-only",
type=operator.methodcaller("split", ","),