Skip to content

Commit

Permalink
[AIRFLOW-6162] Add back serialization as a module (#6718)
Browse files Browse the repository at this point in the history
(cherry-picked from 0abefe9)
  • Loading branch information
kaxil committed Dec 19, 2019
1 parent 0915d00 commit 4a45a58
Show file tree
Hide file tree
Showing 7 changed files with 246 additions and 305 deletions.
4 changes: 4 additions & 0 deletions airflow/models/baseoperator.py
Original file line number Diff line number Diff line change
Expand Up @@ -412,6 +412,10 @@ def __init__(
if dag:
self.dag = dag

# subdag parameter is only set for SubDagOperator.
# Setting it to None by default as other Operators do not have that field
self.subdag = None # type: Optional[DAG]

self._log = logging.getLogger("airflow.task.operators")

# lineage
Expand Down
2 changes: 1 addition & 1 deletion airflow/models/serialized_dag.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

from airflow import DAG
from airflow.models.base import ID_LEN, Base
from airflow.serialization.serialized_dag import SerializedDAG
from airflow.serialization.serialized_objects import SerializedDAG
from airflow.settings import json
from airflow.utils import db, timezone
from airflow.utils.log.logging_mixin import LoggingMixin
Expand Down
135 changes: 0 additions & 135 deletions airflow/serialization/serialized_baseoperator.py

This file was deleted.

150 changes: 0 additions & 150 deletions airflow/serialization/serialized_dag.py

This file was deleted.

Loading

0 comments on commit 4a45a58

Please sign in to comment.