def extract_ericsson_4g3g_nbrs(): process_cm_data = ProcessCMData(dbhost=os.environ.get('POSTGRES_HOST')) process_cm_data.extract_ericsson_4g3g_nbrs()
def extract_huawei_4g4g_nbrs(): process_cm_data = ProcessCMData(dbhost=os.environ.get('POSTGRES_HOST')) process_cm_data.extract_huawei_4g4g_nbrs()
def extract_huawei_3g_cell_params(): process_cm_data = ProcessCMData(dbhost=os.environ.get('POSTGRES_HOST')) process_cm_data.extract_huawei_3g_cell_params()
def extract_ericsson_4g_cells(): process_cm_data = ProcessCMData(dbhost=os.environ.get('POSTGRES_HOST')) process_cm_data.extract_ericsson_4g_cells_per_site()
def process_eri_enodebs(): process_cm_data = ProcessCMData(dbhost=os.environ.get('POSTGRES_HOST')) process_cm_data.extract_ericsson_enodebs()
from sqlalchemy.orm import sessionmaker from sqlalchemy.sql import text from cm_sub_dag_parse_and_import_eri_3g4g import parse_and_import_eri_3g4g from cm_sub_dag_parse_and_import_eri_2g import parse_and_import_eri_2g from cm_sub_dag_parse_and_import_huawei_2g import parse_and_import_huawei_2g from cm_sub_dag_parse_and_import_huawei_3g import parse_and_import_huawei_3g from cm_sub_dag_parse_and_import_huawei_4g import parse_and_import_huawei_4g from airflow.utils.trigger_rule import TriggerRule sys.path.append('/mediation/packages') from bts import NetworkBaseLine, Utils, ProcessCMData bts_utils = Utils() process_cm_data = ProcessCMData(dbhost=os.environ.get('POSTGRES_HOST')) schedule_interval = bts_utils.get_setting('cm_dag_schedule_interval') args = { 'owner': 'bodastage', 'depends_on_past': False, 'start_date': datetime(2017, 1, 1), 'email': ['*****@*****.**'], 'email_on_failure': False, 'email_on_retry': False, 'retries': 1, 'retry_delay': timedelta(minutes=5), } dag = DAG(dag_id='cm_etlp',