BlockInfo#

class lsst.ts.scriptqueue.BlockInfo(log, block_id, block_size)#

Bases: object

Information 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.

get_block_uid()

Retrieve block uid.

has_uid()

Check if block uid was set.

set_block_uid()

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:

None

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:

bool

get_block_uid()#

Retrieve block uid.

Returns:

block_uid – Block unique id.

Return type:

str

has_uid()#

Check if block uid was set.

Returns:

True is uid is set, False otherwise.

Return type:

bool

async set_block_uid()#

Retrieve and set the block unique id from the name server.

Return type:

None