You've already forked LibreTranslate
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:
@@ -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", ","),
|
||||
|
||||
Reference in New Issue
Block a user