BlockInfo#
- class lsst.ts.scriptqueue.BlockInfo(log, block_id, block_size)#
Bases:
objectInformation about a block.
A block is an ordered collection of Scripts. They contain a parent block id and a unique id for each block execution.
- Parameters:
log (
logging.Logger) – Parent logger.block_id (
str) – Parent block id.block_size (
int) – How many scripts are part of this block.
Methods Summary
add(script_info)Add Script to the block.
done()Check if block is done.
Retrieve block uid.
has_uid()Check if block uid was set.
Retrieve and set the block unique id from the name server.
Methods Documentation
- add(script_info)#
Add Script to the block.
- Parameters:
script_info (
ScriptInfoProtocol) – ScriptInfo for the script to add to the block.- Return type:
- done()#
Check if block is done.
A block is considered done is all the scripts that are part of it have finished.
- Returns:
True is block is done, False otherwise.
- Return type:
- has_uid()#
Check if block uid was set.
- Returns:
True is uid is set, False otherwise.
- Return type: