ScriptQueueCommander#

class lsst.ts.scriptqueue.ScriptQueueCommander(script_log_level, **kwargs)#

Bases: CscCommander

ScriptQueue command-line commander.

Parameters:
  • script_log_level (int) – Default log level for scripts.

  • kwargs (Any)

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_availableScripts_callback(data)

evt_queue_callback(data)

get_is_standard(script_type)

Convert a script type argument to isStandard bool.

script_heartbeat(data)

script_heartbeat_monitor()

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:

None

Notes

If you override this method then you should almost certainly override add_kwargs_from_args as 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 on args. The index argument will already be present if relevant.

Return type:

None

Notes

If you override this method then you should almost certainly override add_arguments as well.

async do_add(args)#

Overrride the standard add command to simplify the interface.

Parameters:

args (list[Any])

Return type:

None

async do_showSchema(args)#

Overrride the standard showSchema command for named script type.

Parameters:

args (list[str])

Return type:

None

async do_stopScripts(args)#

Handle the stopScript command, which takes a list of script indices.

Parameters:

args (list[str])

Return type:

None

evt_availableScripts_callback(data)#
Parameters:

data (BaseMsgType)

Return type:

None

evt_queue_callback(data)#
Parameters:

data (BaseMsgType)

Return type:

None

get_is_standard(script_type)#

Convert a script type argument to isStandard bool.

Parameters:

script_type (str)

Return type:

bool

async script_heartbeat(data)#
Parameters:

data (BaseMsgType)

Return type:

None

async script_heartbeat_monitor()#
Return type:

None

async script_log_message(data)#
Parameters:

data (BaseMsgType)

Return type:

None

async script_state(data)#
Parameters:

data (BaseMsgType)

Return type:

None

async start()#

Start asynchonous processes.

Return type:

None