Integration overview
Typical flow:- Airflow schedules or sensors decide when work should run.
- A Planasonix operator (or HTTP task) calls the Planasonix API with pipeline id, parameters, and environment.
- Planasonix enqueues the run and returns a run id.
- The operator polls until the run reaches a terminal state, or you use deferrable mode to free worker slots.
You can also invert the pattern: Planasonix webhooks or chaining trigger Airflow DAGs when loads complete. Choose one primary orchestrator to avoid circular dependencies.
Planasonix Airflow operator
Install the provider package your platform team distributes (PyPI name and version appear in your internal wiki). The operator usually accepts:pipeline_idorpipeline_nameplusenvironmentparameters/variablesdict passed into the runwait_for_completionand timeoutapi_keyor connection id referencing stored credentials
- Sync operator
- Deferrable operator
Blocks an Airflow worker until Planasonix finishes. Simple to reason about; ties up a worker for long jobs.
Connection configuration
Create an Airflow HTTP or custom connection:| Field | Value |
|---|---|
| Host | Planasonix API host for your region |
| Login | Service account identifier if required |
| Password / token | API key or OAuth secret from API keys |
| Extra JSON | organization_id, default environment, optional agent_pool hints |
DAG examples
Minimal synchronous task
Sensor plus downstream warehouse task
Monitoring Airflow-triggered runs
In Planasonix run history, filter by trigger type (API / integration) and correlation metadata if your operator forwardsdag_id and task_id as tags or parameters.
- Failed Planasonix runs should fail the Airflow task so retries and alerting follow your existing DAG policies.
- For long runs, align Airflow task timeout with Planasonix run timeout to avoid double-kill races.
Idempotency
Idempotency
Pass deterministic parameters (
ds, hour, business keys) so retries do not duplicate loads unless your pipeline is designed for at-least-once semantics.Cross-region latency
Cross-region latency
If Airflow lives in a different region than Planasonix, add slack to polling intervals to reduce API chatter.
Related topics
API authentication
Token types and scopes for automation.
Webhooks
Event-driven triggers into or out of Planasonix.