QuantumReport#

class lsst.pipe.base.quantum_reports.QuantumReport(dataId: DataId, taskLabel: str, status: ExecutionStatus = ExecutionStatus.SUCCESS, exitCode: int | None = None, exceptionInfo: ExceptionInfo | None = None, quantumId: uuid.UUID | None = None)#

Bases: BaseModel

Task execution report for a single Quantum.

Parameters#

dataIdDataId

Quantum data ID.

taskLabelstr

Label for task executing this Quantum.

statusExecutionStatus

Status of this quantum execution.

exitCodeint or None, optional

Exit code for sub-process executing this Quantum. None for in-process execution. Negative if process was killed by a signal.

exceptionInfoExceptionInfo or None, optional

Exception information if an exception was raised.

quantumIduuid.UUID, optional

Unique identifier for the quantum.

Attributes Summary

model_config

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

Methods Summary

copy(*args, **kwargs)

See pydantic.BaseModel.copy.

from_exception(exception, dataId, taskLabel, *)

Construct report instance from an exception and other pieces of data.

from_exit_code(exitCode, dataId, taskLabel)

Construct report instance from an exit code and other pieces of data.

model_construct(*args, **kwargs)

See pydantic.BaseModel.model_construct.

model_copy(*args, **kwargs)

See pydantic.BaseModel.model_copy.

model_dump(*args, **kwargs)

See pydantic.BaseModel.model_dump.

model_dump_json(*args, **kwargs)

See pydantic.BaseModel.model_dump_json.

model_json_schema(*args, **kwargs)

See pydantic.BaseModel.model_json_schema.

model_validate(*args, **kwargs)

See pydantic.BaseModel.model_validate.

model_validate_json(*args, **kwargs)

See pydantic.BaseModel.model_validate_json.

model_validate_strings(*args, **kwargs)

See pydantic.BaseModel.model_validate_strings.

Attributes Documentation

model_config: ClassVar[ConfigDict] = {}#

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

Methods Documentation

copy(*args: Any, **kwargs: Any) Any#

See pydantic.BaseModel.copy.

classmethod from_exception(exception: Exception, dataId: DataCoordinate | Mapping[str, Any], taskLabel: str, *, exitCode: int | None = None, quantumId: UUID | None = None) QuantumReport#

Construct report instance from an exception and other pieces of data.

Parameters#

exceptionException

Exception caught from processing quantum.

dataIdDataId

Data ID of quantum.

taskLabelstr

Label of task.

exitCodeint, optional

Exit code for the process, used when it is known that the process will exit with that exit code.

quantumIduuid.UUID, optional

Unique identifier for the quantum.

classmethod from_exit_code(exitCode: int, dataId: DataCoordinate | Mapping[str, Any], taskLabel: str, quantumId: UUID | None = None) QuantumReport#

Construct report instance from an exit code and other pieces of data.

Parameters#

exitCodeint

The exit code of the subprocess.

dataIdDataId

The quantum Data ID.

taskLabelstr

The task label.

quantumIduuid.UUID, optional

Unique identifier for the quantum.

classmethod model_construct(*args: Any, **kwargs: Any) Any#

See pydantic.BaseModel.model_construct.

model_copy(*args: Any, **kwargs: Any) Any#

See pydantic.BaseModel.model_copy.

model_dump(*args: Any, **kwargs: Any) Any#

See pydantic.BaseModel.model_dump.

model_dump_json(*args: Any, **kwargs: Any) Any#

See pydantic.BaseModel.model_dump_json.

classmethod model_json_schema(*args: Any, **kwargs: Any) Any#

See pydantic.BaseModel.model_json_schema.

classmethod model_validate(*args: Any, **kwargs: Any) Any#

See pydantic.BaseModel.model_validate.

classmethod model_validate_json(*args: Any, **kwargs: Any) Any#

See pydantic.BaseModel.model_validate_json.

classmethod model_validate_strings(*args: Any, **kwargs: Any) Any#

See pydantic.BaseModel.model_validate_strings.