-
Notifications
You must be signed in to change notification settings - Fork 14.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[AIRFLOW-7022] Simplify DagFileProcessor.process_file method #7674
Changes from 1 commit
7088721
aa38e5a
67f6f38
0409652
7232a99
2c0ea2e
155b4dd
4ea2043
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -845,11 +845,11 @@ def process_file( | |||||
|
||||||
paused_dag_ids = DagModel.get_paused_dag_ids(dag_ids=dagbag.dag_ids) | ||||||
|
||||||
active_dags = [dag for dag_id, dag in dagbag.dags.items() if dag_id not in paused_dag_ids] | ||||||
unpaaused_dags = [dag for dag_id, dag in dagbag.dags.items() if dag_id not in paused_dag_ids] | ||||||
|
||||||
simple_dags = self._prepare_simple_dags(active_dags, pickle_dags, session) | ||||||
simple_dags = self._prepare_simple_dags(unpaaused_dags, pickle_dags, session) | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fixed. Thanks. |
||||||
|
||||||
dags = self._find_dags_to_process(active_dags) | ||||||
dags = self._find_dags_to_process(unpaaused_dags) | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fixed. Thanks. |
||||||
|
||||||
ti_keys_to_schedule = self._process_dags(dags, session) | ||||||
|
||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.