mik-laj commented on a change in pull request #7806: Decouple DAG from DagBag
and DAG from SerializedDagModel - remove cyclic imports
URL: https://github.com/apache/airflow/pull/7806#discussion_r396241807
##########
File path: airflow/models/dag.py
##########
@@ -1850,31 +1562,27 @@ def create_dagrun(self,
def set_is_paused(self,
is_paused: bool,
including_subdags: bool = True,
- store_serialized_dags: bool = False,
session=None) -> None:
"""
Pause/Un-pause a DAG.
:param is_paused: Is the DAG paused
:param including_subdags: whether to include the DAG's subdags
- :param store_serialized_dags: whether to serialize DAGs & store it in
DB
:param session: session
"""
- dag_ids = [self.dag_id] # type: List[str]
+ filter_query = [
+ DagModel.dag_id.in_(self.dag_id),
+ ]
if including_subdags:
- dag = self.get_dag(store_serialized_dags)
Review comment:
I'm not sure if this behavior is 100% identical, but it seems sensible from
a web UIi perspective.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services