Little UX improvements in CLI (#5446)

- Reduced request status checks period to 2 sec.
- Fixed parameter help message
main
Maxim Zhiltsov 3 years ago committed by GitHub
parent 6ac561235c
commit dbd4528332
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -122,7 +122,7 @@ def make_cmdline_parser() -> argparse.ArgumentParser:
task_create_parser.add_argument( task_create_parser.add_argument(
"--completion_verification_period", "--completion_verification_period",
dest="status_check_period", dest="status_check_period",
default=20, default=2,
type=float, type=float,
help="""number of seconds to wait until checking help="""number of seconds to wait until checking
if data compression finished (necessary before uploading annotations)""", if data compression finished (necessary before uploading annotations)""",
@ -261,7 +261,7 @@ def make_cmdline_parser() -> argparse.ArgumentParser:
dump_parser.add_argument( dump_parser.add_argument(
"--completion_verification_period", "--completion_verification_period",
dest="status_check_period", dest="status_check_period",
default=3, default=2,
type=float, type=float,
help="number of seconds to wait until checking if dataset building finished", help="number of seconds to wait until checking if dataset building finished",
) )
@ -298,7 +298,7 @@ def make_cmdline_parser() -> argparse.ArgumentParser:
export_task_parser.add_argument( export_task_parser.add_argument(
"--completion_verification_period", "--completion_verification_period",
dest="status_check_period", dest="status_check_period",
default=3, default=2,
type=float, type=float,
help="time interval between checks if archive building has been finished, in seconds", help="time interval between checks if archive building has been finished, in seconds",
) )
@ -311,9 +311,9 @@ def make_cmdline_parser() -> argparse.ArgumentParser:
import_task_parser.add_argument( import_task_parser.add_argument(
"--completion_verification_period", "--completion_verification_period",
dest="status_check_period", dest="status_check_period",
default=3, default=2,
type=float, type=float,
help="time interval between checks if archive proessing was finished, in seconds", help="time interval between checks if archive processing was finished, in seconds",
) )
return parser return parser

Loading…
Cancel
Save