Skip to content

Add Microsoft ADF DAG in master for integration test #260

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

Merged
merged 8 commits into from
Apr 22, 2022
8 changes: 8 additions & 0 deletions .circleci/integration-tests/master_dag.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,12 @@ def prepare_dag_dependency(task_info, execution_time):
dag_run_ids.extend(ids)
chain(*livy_trigger_tasks)

# microsoft Azure Data factory pipeline DAG
adf_pipeline_task_info = [{"adf_pipeline_dag": "example_adf_run_pipeline"}]
adf_pipeline_trigger_tasks, ids = prepare_dag_dependency(adf_pipeline_task_info, "{{ ds }}")
dag_run_ids.extend(ids)
chain(*adf_pipeline_trigger_tasks)

report = PythonOperator(
task_id="get_report",
python_callable=get_report,
Expand All @@ -181,6 +187,7 @@ def prepare_dag_dependency(task_info, execution_time):
http_trigger_tasks[0],
snowflake_trigger_tasks[0],
livy_trigger_tasks[0],
adf_pipeline_trigger_tasks[0],
]

last_task = [
Expand All @@ -193,6 +200,7 @@ def prepare_dag_dependency(task_info, execution_time):
http_trigger_tasks[-1],
snowflake_trigger_tasks[-1],
livy_trigger_tasks[-1],
adf_pipeline_trigger_tasks[-1],
]

last_task >> end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
default_args = {
"execution_timeout": timedelta(minutes=30),
"azure_data_factory_conn_id": "azure_data_factory_default",
"factory_name": "ADFProvidersTeamDataFactory", # This can also be specified in the ADF connection.
"resource_group_name": "team_provider_resource_group_test", # This can also be specified in the ADF connection.
"factory_name": "ADFProvidersTeamDataFactoryTest", # This can also be specified in the ADF connection.
"resource_group_name": "team_provider_resource_group_test_1", # This can also be specified in the ADF connection.
}

CLIENT_ID = os.getenv("CLIENT_ID", "")
Expand Down