Hightouch Provider for Airflow
Maintained. Last release 7 months ago, commits in 0 of the last 26 weeks. Weaker on commit activity and release cadence.
pip install airflow-provider-hightouchApache Airflow Provider for Hightouch
Provides an Airflow Operator and Hook for Hightouch. This allows the user to initiate a run for a sync from Airflow.
Installation
Pre-requisites: An environment running apache-airflow >= 1.10, including >= 2.
pip install airflow-provider-hightouch
Configuration
In the Airflow Connections UI, create a new connection for Hightouch.
Conn ID:hightouch_defaultConn Type:HTTPHost:https://api.hightouch.comPassword: enter the API key for your workspace. You can generate an API key from your Workspace Settings
The Operator uses the hightouch_default connection id by default, but
if needed, you can create additional Airflow Connections and reference them
in the operator
Modules
HightouchTriggerSyncOperator
Starts a Hightouch Sync Run. Requires the sync_id or the sync_slug for the sync you wish to
run.
Returns the sync_run_id of the sync it triggers.
The run is synchronous by default, and the task will be marked complete once the sync is successfully completed.
However, you can request a asynchronous request instead by passing synchronous=False
to the operator.
If the API key is not authorized or if the request is invalid the task will fail. If a run is already in progress, a new run will be triggered following the completion of the existing run.
HightouchSyncRunSensor
Monitors a Hightouch Sync Run. Requires the sync_id and the sync_run_id of the sync you wish to monitor.
To obtain the sync_run_id of a sync triggered in Airflow, we recommend using XComs to pass the return value
of HightouchTriggerSyncOperator.
Examples
Creating a run is as simple as importing the operator and providing it with a sync_id. An is available as well.