|
1 | 1 | from datetime import datetime, timedelta |
| 2 | + |
2 | 3 | from airflow import DAG |
3 | 4 | from airflow.operators.empty import EmptyOperator |
4 | | -from libs.auto_mapping.find_R_concepts_to_reuse import ( |
5 | | - find_matching_field, |
6 | | - find_matching_value, |
7 | | - create_reusing_concepts, |
8 | | - delete_R_concepts, |
9 | | -) |
10 | | - |
11 | | -from libs.auto_mapping.find_standard_V_concepts import ( |
12 | | - find_standard_concepts, |
13 | | - create_standard_concepts, |
14 | | -) |
15 | | - |
16 | 5 | from libs.auto_mapping.core_get_existing_concepts import ( |
17 | 6 | delete_mapping_rules, |
18 | 7 | find_existing_concepts, |
19 | 8 | ) |
20 | 9 | from libs.auto_mapping.core_prep_rules_creation import ( |
21 | | - find_dest_table_and_person_field_id, |
22 | | - find_date_fields, |
23 | | - find_concept_fields, |
24 | 10 | find_additional_fields, |
| 11 | + find_concept_fields, |
| 12 | + find_date_fields, |
| 13 | + find_dest_table_and_person_field_id, |
25 | 14 | ) |
26 | 15 | from libs.auto_mapping.core_rules_creation import create_mapping_rules |
| 16 | +from libs.auto_mapping.find_R_concepts_to_reuse import ( |
| 17 | + create_reusing_concepts, |
| 18 | + delete_R_concepts, |
| 19 | + find_matching_field, |
| 20 | + find_matching_value, |
| 21 | +) |
| 22 | +from libs.auto_mapping.find_standard_V_concepts import ( |
| 23 | + create_standard_concepts, |
| 24 | + find_standard_concepts, |
| 25 | +) |
27 | 26 | from libs.auto_mapping.search_recommendations import process_search_recommendations |
| 27 | +from libs.settings import AIRFLOW_DAGRUN_TIMEOUT, AIRFLOW_DEBUG_MODE, SEARCH_ENABLED |
28 | 28 | from libs.utils import ( |
29 | 29 | create_task, |
30 | | - validate_params_auto_mapping, |
31 | 30 | update_job_status_on_failure, |
| 31 | + validate_params_auto_mapping, |
32 | 32 | ) |
33 | | -from libs.settings import AIRFLOW_DEBUG_MODE, SEARCH_ENABLED, AIRFLOW_DAGRUN_TIMEOUT |
34 | 33 |
|
35 | 34 | """ |
36 | 35 | This DAG automates the process of creating and reusing concepts from scan reports and generating mapping rules. |
|
0 commit comments