ExecutionResources

class lsst.pipe.base.ExecutionResources(*, num_cores: int = 1, max_mem: Quantity | Real | str | None = None, default_mem_units: Unit = Unit('byte'))

Bases: object

A description of the resources available to a running quantum.

Parameters:
num_coresint, optional

The number of cores allocated to the task.

max_memQuantity, numbers.Real, str, or None, optional

The amount of memory allocated to the task. Can be specified as byte-compatible Quantity, a plain number, a string with a plain number, or a string representing a quantity. If None no limit is specified.

default_mem_unitsastropy.units.Unit, optional

The default unit to apply when the max_mem value is given as a plain number.

Attributes Summary

max_mem

If defined, the amount of memory allocated to the task.

num_cores

The maximum number of cores that the task can use.

Attributes Documentation

max_mem: Quantity | None = None

If defined, the amount of memory allocated to the task.

num_cores: int = 1

The maximum number of cores that the task can use.