You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by as...@apache.org on 2024/10/30 14:31:03 UTC

(airflow) 05/31: Fix some tests in tests/models/test_dagbag.py [ci skip]

This is an automated email from the ASF dual-hosted git repository.

ash pushed a commit to branch task-sdk-first-code
in repository https://gitbox.apache.org/repos/asf/airflow.git

commit efa08bf06e5c3771c86fadf9b31107653b877a6a
Author: Kaxil Naik <ka...@apache.org>
AuthorDate: Tue Oct 22 16:35:38 2024 +0100

    Fix some tests in  tests/models/test_dagbag.py [ci skip]
---
 task_sdk/src/airflow/sdk/definitions/baseoperator.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/task_sdk/src/airflow/sdk/definitions/baseoperator.py b/task_sdk/src/airflow/sdk/definitions/baseoperator.py
index 8349876cb8f..bc2c696ab44 100644
--- a/task_sdk/src/airflow/sdk/definitions/baseoperator.py
+++ b/task_sdk/src/airflow/sdk/definitions/baseoperator.py
@@ -574,6 +574,9 @@ class BaseOperator(AbstractOperator, metaclass=BaseOperatorMeta):
 
     _dag: DAG | None = field(init=False, default=None)
 
+    # The _serialized_fields are lazily loaded when get_serialized_fields() method is called
+    __serialized_fields: ClassVar[frozenset[str] | None] = None
+
     _comps: ClassVar[set[str]] = {
         "task_id",
         "dag_id",