airflow.models.xcom
¶
Module Contents¶
-
class
airflow.models.xcom.
BaseXCom
[source]¶ Bases:
airflow.models.base.Base
,airflow.utils.log.logging_mixin.LoggingMixin
Base class for XCom objects.
-
__table_args__
[source]¶ TODO: “pickling” has been deprecated and JSON is preferred. “pickling” will be removed in Airflow 2.0.
-
classmethod
set
(cls, key, value, execution_date, task_id, dag_id, session=None)[source]¶ Store an XCom value.
- Returns
None
-
classmethod
get_one
(cls, execution_date, key=None, task_id=None, dag_id=None, include_prior_dates=False, session=None)[source]¶ Retrieve an XCom value, optionally meeting certain criteria. TODO: “pickling” has been deprecated and JSON is preferred. “pickling” will be removed in Airflow 2.0.
- Returns
XCom value
-
classmethod
get_many
(cls, execution_date, key=None, task_ids=None, dag_ids=None, include_prior_dates=False, limit=100, session=None)[source]¶ Retrieve an XCom value, optionally meeting certain criteria TODO: “pickling” has been deprecated and JSON is preferred. “pickling” will be removed in Airflow 2.0.
-