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:
BaseModelTask execution report for a single Quantum.
Parameters#
- dataId
DataId Quantum data ID.
- taskLabel
str Label for task executing this Quantum.
- status
ExecutionStatus Status of this quantum execution.
- exitCode
intorNone, optional Exit code for sub-process executing this Quantum.
Nonefor in-process execution. Negative if process was killed by a signal.- exceptionInfo
ExceptionInfoorNone, optional Exception information if an exception was raised.
- quantumId
uuid.UUID, optional Unique identifier for the quantum.
Attributes Summary
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#
- exception
Exception Exception caught from processing quantum.
- dataId
DataId Data ID of quantum.
- taskLabel
str Label of task.
- exitCode
int, optional Exit code for the process, used when it is known that the process will exit with that exit code.
- quantumId
uuid.UUID, optional Unique identifier for the quantum.
- exception
- 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#
- exitCode
int The exit code of the subprocess.
- dataId
DataId The quantum Data ID.
- taskLabel
str The task label.
- quantumId
uuid.UUID, optional Unique identifier for the quantum.
- exitCode
- 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.
- dataId