-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add methods to get the connector_id (#101)
* Add methods to get the connector_id Add methods to get the connector_id using the Name and Destination from Connectors Dashboard * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Add methods to get the connector_id fix CI --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
- Loading branch information
1 parent
6bd6d5c
commit 55b2b69
Showing
6 changed files
with
229 additions
and
10 deletions.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
fivetran_provider_async/example_dags/example_fivetran_without_connector_id.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
from datetime import datetime, timedelta | ||
|
||
from airflow import DAG | ||
|
||
from fivetran_provider_async.operators import FivetranOperator | ||
|
||
default_args = { | ||
"owner": "Airflow", | ||
"start_date": datetime(2021, 4, 6), | ||
} | ||
|
||
dag = DAG( | ||
dag_id="example_fivetran_without_connector_id", | ||
default_args=default_args, | ||
schedule_interval=timedelta(days=1), | ||
catchup=False, | ||
) | ||
|
||
with dag: | ||
fivetran_sync_start = FivetranOperator( | ||
task_id="fivetran_task", | ||
fivetran_conn_id="fivetran_default", | ||
connector_name="{{ var.value.connector_name }}", | ||
destination_name="{{ var.value.destination_name }}", | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters