The Customer Data Platform for Developers
RudderStack Airflow Provider
The RudderStack Airflow Provider lets you programmatically schedule and trigger your Reverse ETL syncs and Profiles runs outside RudderStack and integrate them with your existing Airflow workflows. Refer to orchestration docs.
Installation
pip install rudderstack-airflow-provider
Usage
RudderstackRETLOperator
[!NOTE]
Use RudderstackRETLOperator for reverse ETL connections
A simple DAG for triggering syncs for a RudderStack Reverse ETL source:
with DAG(
"rudderstack-retl-sample",
default_args=default_args,
description="A simple tutorial DAG for reverse etl",
schedule_interval=timedelta(days=1),
start_date=datetime(2021, 1, 1),
catchup=False,
tags=["rs-retl"],
) as dag:
# retl_connection_id, sync_type are template fields
rs_operator = RudderstackRETLOperator(
retl_connection_id="connection_id",
task_id="<a unique, meaningful id for the airflow task>",
connection_id="<rudderstack api airflow connection id>"
)
For the complete code, refer to this example.
Mandatatory parameters for RudderstackRETLOperator:
- retl_connection_id: This is the connection id for the sync job.
- connection_id: The Airflow connection to use for connecting to the Rudderstack API. Default value is
rudderstack_default.
RudderstackRETLOperator exposes other configurable parameters as well. Mostly default values for them would be recommended.
- request_max_retries: The maximum number of times requests to the RudderStack API should be retried before failng.
- request_retry_delay: Time (in seconds) to wait between each request retry.
- request_timeout: Time (in seconds) after which the requests to RudderStack are declared timed out.
- poll_interval: Time (in seconds) for polling status of triggered job.
- poll_timeout: Time (in seconds) after which the polling for a triggered job is declared timed out.
- wait_for_completion: Boolean if execution run should poll and wait till completion of sync. Default value is True.
- sync_type: Type of sync to trigger
incrementalorfull. Default is None as RudderStack will be deteriming sync type.
RudderstackProfilesOperator
RudderstackProfilesOperator can be used to trigger profiles run. A simple DAG for triggering profile runs for a profiles project.
with DAG(
"rudderstack-profiles-sample",
default_args=default_args,
description="A simple tutorial DAG for profiles run.",
schedule_interval=timedelta(days=1),
start_date=datetime(2021, 1, 1),
catchup=False,
tags=["rs-profiles"],
) as dag:
# profile_id is template field
rs_operator = RudderstackProfilesOperator(
profile_id="<profile_id>",
task_id="<a unique, meaningful id for the airflow task",
connection_id="<rudderstack api connection id>",
)
Mandatatory parameters for RudderstackProfilesOperator:
- profile_id: This is the profiles id for the profiles project to run.
- connection_id: The Airflow connection to use for connecting to the Rudderstack API. Default value is
rudderstack_default.
RudderstackProfilesOperator exposes other configurable parameters as well. Mostly default values for them would be recommended.
- request_max_retries: The maximum number of times requests to the RudderStack API should be retried before failng.
- request_retry_delay: Time (in seconds) to wait between each request retry.
- request_timeout: Time (in seconds) after which the requests to RudderStack are declared timed out.
- poll_interval: Time (in seconds) for polling status of triggered job.
- poll_timeout: Time (in seconds) after which the polling for a triggered job is declared timed out.
- wait_for_completion: Boolean if execution run should poll and wait till completion of sync. Default value is True.
- parameters: Additional parameters to pass to the profiles run command, as supported by the API endpoint. Default value is
None.
RudderstackETLOperator
RudderstackETLOperator can be used to trigger ETL sync runs. A simple DAG for triggering ETL sync.
with DAG(
"rudderstack-etl-sample",
default_args=default_args,
description="A simple tutorial DAG for etl sync.",
schedule_interval=timedelta(days=1),
start_date=datetime(2021, 1, 1),
catchup=False,
tags=["rs-etl"],
) as dag:
# etl_source_id is template field
rs_operator = RudderstackProfilesOperator(
etl_source_id="<etl_source_id>",
task_id="<a unique, meaningful id for the airflow task",
connection_id="<rudderstack api connection id>",
)
Mandatatory parameters for RudderstackETLOperator:
- etl_source_id: This is the source id for the ETL source.
- connection_id: The Airflow connection to use for connecting to the Rudderstack API. Default value is
rudderstack_default.
RudderstackETLOperator exposes other configurable parameters as well. Mostly default values for them would be recommended.
- request_max_retries: The maximum number of times requests to the RudderStack API should be retried before failng.
- request_retry_delay: Time (in seconds) to wait between each request retry.
- request_timeout: Time (in seconds) after which the requests to RudderStack are declared timed out.
- poll_interval: Time (in seconds) for polling status of triggered job.
- poll_timeout: Time (in seconds) after which the polling for a triggered job is declared timed out.
- wait_for_completion: Boolean if execution run should poll and wait till completion of sync. Default value is True.
Contribute
We would love to see you contribute to this project. Get more information on how to contribute here.
License
The RudderStack Airflow Provider is released under the MIT License.
Contact Us
For more information or queries on this feature, you can contact us or start a conversation in our Slack community.
Metadata
Release files for rudderstack-airflow-provider 2.4.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| rudderstack_airflow_provider-2.4.3.tar.gz | 10.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| rudderstack_airflow_provider-2.4.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 22.8 kB
Release files / rudderstack_airflow_provider-2.4.3.tar.gz
| Download URL | rudderstack_airflow_provider-2.4.3.tar.gz |
|---|---|
| Size | 10.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cd3ddf664381c60ad4bc11bfba80295b6111a40af22c8d1aeabc4965ff886308
|
|
BLAKE2b-256 checksum How to use checksums |
bb8055ff289f080a7edd691ca4fcfb2375d496ba82a6b77a1fb6df1ab7a1e7be
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 22, 2026.
Transparency logRelease files / rudderstack_airflow_provider-2.4.3-py3-none-any.whl
| Download URL | rudderstack_airflow_provider-2.4.3-py3-none-any.whl |
|---|---|
| Size | 12.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2becc0cffd07eb6a5f993e506756c4bd4215888a8a016c18a5e577e83a9d2bd0
|
|
BLAKE2b-256 checksum How to use checksums |
78974426173a0f230a98fe2921586be27635c95c944af8a0d4fc4ef73a445cc4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 22, 2026.
Transparency log