ScriptQueueCommander#
- class lsst.ts.scriptqueue.ScriptQueueCommander(script_log_level, **kwargs)#
Bases:
CscCommanderScriptQueue command-line commander.
Methods Summary
add_arguments(parser)Add arguments to the parser created by
make_from_cmd_line.add_kwargs_from_args(args, kwargs)Add constructor keyword arguments based on parsed arguments.
do_add(args)Overrride the standard add command to simplify the interface.
do_showSchema(args)Overrride the standard showSchema command for named script type.
do_stopScripts(args)Handle the stopScript command, which takes a list of script indices.
evt_queue_callback(data)get_is_standard(script_type)Convert a script type argument to isStandard bool.
script_heartbeat(data)script_log_message(data)script_state(data)start()Start asynchonous processes.
Methods Documentation
- classmethod add_arguments(parser)#
Add arguments to the parser created by
make_from_cmd_line.- Parameters:
parser (
argparse.ArgumentParser) – The argument parser.- Return type:
Notes
If you override this method then you should almost certainly override
add_kwargs_from_argsas well.
- classmethod add_kwargs_from_args(args, kwargs)#
Add constructor keyword arguments based on parsed arguments.
- Parameters:
args (
argparse.namespace) – Parsed command.kwargs (
dict) – Keyword argument dict for the constructor. Update this based onargs. The index argument will already be present if relevant.
- Return type:
Notes
If you override this method then you should almost certainly override
add_argumentsas well.
- async do_add(args)#
Overrride the standard add command to simplify the interface.
- async do_showSchema(args)#
Overrride the standard showSchema command for named script type.
- async do_stopScripts(args)#
Handle the stopScript command, which takes a list of script indices.
- get_is_standard(script_type)#
Convert a script type argument to isStandard bool.