mirror of
https://github.com/m-labs/artiq.git
synced 2024-12-28 20:53:35 +08:00
artiq_client: cancel interactive arguments
This commit is contained in:
parent
5a8bc17e4d
commit
7fa770fba9
@ -121,6 +121,11 @@ def get_argparser():
|
||||
"arguments", metavar="ARGUMENTS", nargs="*",
|
||||
help="interactive arguments")
|
||||
|
||||
parser_cancel_interactive = subparsers.add_parser(
|
||||
"cancel-interactive", help="cancel interactive arguments")
|
||||
parser_cancel_interactive.add_argument(
|
||||
"rid", metavar="RID", type=int, help="RID of target experiment")
|
||||
|
||||
parser_show = subparsers.add_parser(
|
||||
"show", help="show schedule, log, devices or datasets")
|
||||
parser_show.add_argument(
|
||||
@ -222,6 +227,10 @@ def _action_supply_interactive(remote, args):
|
||||
remote.supply(args.rid, arguments)
|
||||
|
||||
|
||||
def _action_cancel_interactive(remote, args):
|
||||
remote.cancel(args.rid)
|
||||
|
||||
|
||||
def _action_scan_repository(remote, args):
|
||||
if getattr(args, "async"):
|
||||
remote.scan_repository_async(args.revision)
|
||||
@ -382,6 +391,7 @@ def main():
|
||||
"del_dataset": "dataset_db",
|
||||
"scan_devices": "device_db",
|
||||
"supply_interactive": "interactive_arg_db",
|
||||
"cancel_interactive": "interactive_arg_db",
|
||||
"scan_repository": "experiment_db",
|
||||
"ls": "experiment_db",
|
||||
"terminate": "master_management",
|
||||
|
Loading…
Reference in New Issue
Block a user