airflow.models.xcom
¶
Module Contents¶
Functions¶
|
Resolves custom XCom class |
Attributes¶
- class airflow.models.xcom.BaseXCom(context=None)[source]¶
Bases:
airflow.models.base.Base
,airflow.utils.log.logging_mixin.LoggingMixin
Base class for XCom objects.
- init_on_load(self)[source]¶
Called by the ORM after the instance has been loaded from the DB or otherwise reconstituted i.e automatically deserialize Xcom value when loading from DB.
- classmethod delete(cls, xcoms: Union[XCom, Iterable[XCom]], session: sqlalchemy.orm.Session) None [source]¶
Delete one or multiple XCom entries.
- static deserialize_value(result: XCom) Any [source]¶
Deserialize XCom value from str or pickle object
- orm_deserialize_value(self) Any [source]¶
Deserialize method which is used to reconstruct ORM XCom object.
This method should be overridden in custom XCom backends to avoid unnecessary request or other resource consuming operations when creating XCom orm model. This is used when viewing XCom listing in the webserver, for example.