PROVIDER - Data Workflow Scheduler
Apache DolphinScheduler
Apache DolphinScheduler builds data workflows as draggable DAGs with dependencies, multi-tenancy, backfills and retries; Apache-2.0 licensed, so self-hosting carries no licence fee and the full feature set.
4pts
Service Overview
Apache DolphinScheduler schedules data workflows: tasks are dragged into a directed acyclic graph on a canvas, dependencies and parameter passing are declared between nodes, and runs trigger on a cron or manually with backfills, retries and alerting. It grew out of requirements from Chinese data teams and is now an Apache Software Foundation top-level project.
The project is Apache-2.0 and self-hostable. The current line is 3.4.x, implemented in Java, with API, Master, Worker, alert and registry roles. Task types cover Shell, SQL, Python, Spark, Flink, HTTP, DataX and SeaTunnel, fitting teams that want scattered scripts consolidated into an observable scheduler.
Key Strengths
- Dragging on the canvas declares dependencies, with upstream and downstream relations plus parameters visible.
- Multi-tenancy isolates projects and queues, so several teams share one platform with scoped permissions.
- Backfills and retries are built in: rerun a date range without touching unaffected tasks.
- Task types span SQL, Spark, Flink, Python and HTTP, so data pipelines and scripts share one graph.
- The Apache-2.0 licence means no licence fee or instance cap, with the full feature set.
Limitations
- Deployment involves API, Master, Worker, database and registry roles, so the first install needs role knowledge.
- Upgrades follow the official notes step by step, and major versions require checking SQL scripts and settings.
- Complex semantics such as cross-graph dependencies rely on subflows or parameters, less flexible than code.
- Monitoring and alerting are largely yours to build; the built-in alert service only configures channels.
- Documentation mixes English and Chinese, and some version-specific passages lag behind, so community threads help.
Product Ecosystem
DolphinScheduler is decentralised: the API accepts operations, Masters parse DAGs and dispatch tasks, Workers execute and report state, and the registry handles heartbeats and discovery. Each role can run several instances, and remaining instances take over when one fails.
Workflows and task types
Workflows combine task nodes on a canvas, where nodes can be Shell, SQL, Python, Spark, Flink, HTTP, DataX or SeaTunnel types. Nodes support dependencies, branches and subflows, parameters pass from upstream outputs, and global parameters inject shared values.
Scheduling, backfills and retries
Schedules fire on cron expressions, and manual runs accept a date range. Backfills submit a day or custom range in bulk, failed tasks rerun alone while completed tasks are skipped, which avoids writing downstream data twice.
Multi-tenancy and the resource centre
A tenant maps to a team or project with its own queues, worker groups and environment settings. The resource centre stores scripts and configuration files, and tasks reference resource IDs, which keeps updates versioned in one place.
Alerting and observability
The alert service notifies on task instance states through email, DingTalk, WeCom and webhook channels. Run status, duration and logs appear in the UI, while dashboards usually require feeding the database and worker logs into existing monitoring.
Deployment and upgrades
Installs run on hosts, virtual machines or Kubernetes, with a minimum of API, Master, Worker and a database. Upgrades follow the release notes version by version, backing up the database first; the callback checks in webhook signature verification help when validating alert and trigger endpoints.
Use Cases
- Good fit|Warehouse ETL scheduling: SQL and Spark tasks share one DAG with declared dependencies.
- Good fit|Shared scheduling across teams: tenants and queues isolate projects and permissions.
- Good fit|Offline chains needing bulk backfills: rerun a date range and retry only failed tasks.
- Good fit|Existing shell and Python scripts: attach scripts to task nodes and let the platform trigger them.
- Evaluate|Real-time or second-level scheduling: minute-level batch work fits better; use another framework for seconds.
- Evaluate|Small teams without Java operations: multi-role deployment and upgrades need operational effort.
- Evaluate|Non-technical business orchestration: the canvas targets data tasks, while approval flows belong elsewhere.
Open Source License & Deployment Cost
The platform itself is free; budget goes to infrastructure and people. Production usually runs at least two Masters and two Workers, plus a database and registry instances.
| Item | Billing | Size and volume | Notes |
|---|---|---|---|
| Software licence | free | unlimited instances and tenants | Apache-2.0, commercial use and modification allowed, notices kept on redistribution |
| Host resources | billed by your cloud or colocation | production starts at two Masters and two Workers, sized by concurrency and memory | task workloads are CPU and memory sensitive; Spark tasks need execution memory headroom |
| Database | managed or self-hosted instance | MySQL or PostgreSQL, sized by flow instances and log retention | flow definitions, instance state and log indexes live here, so include it in backups |
| Registry | usually shares hosts | co-located with Masters and Workers, or standalone | multi-instance coordination depends on heartbeats, and network jitter affects task reassignment |
| Operations effort | internal team time | deployment, upgrades, monitoring, troubleshooting | upgrade version by version per the notes and back up the database first |
| Commercial support | contract priced | by environment size and support level | for teams without dedicated operations, exchanging cost for hosting and response commitments |
With an existing Kubernetes cluster, containerised deployment cuts host management; otherwise start with the minimum role set and split workers as concurrency grows.
FAQ
- How does it differ from Airflow? DolphinScheduler centres on a visual canvas, with tenants and queues as built-in concepts and backfills submitted by range in the UI. Airflow defines DAGs in Python with a broader plugin ecosystem. Both schedule SQL and Spark work; the difference is orchestration style and operating habits.
- What does a minimum install need? An API, a Master, a Worker and one database, with the registry co-located with the main process. Development can run everything on one host, while production splits Masters and Workers across hosts with two instances each so a single failure does not stop scheduling.
- Can backfills write downstream data twice? Backfills skip already successful instances but rewrites hit downstream again on retry. Keep tasks idempotent, for example partition overwrite or delete-then-insert, and add a precheck node when a duplicated write would break reconciliation.
- What should upgrades watch for? Upgrade version by version per the release notes, because skipping versions drops database scripts. Back up the database and configuration, validate task compatibility in a test environment, then roll Masters and Workers, avoiding backfill submissions during the restart.
- Can it schedule non-data tasks? Yes. Shell, Python, HTTP and subflow nodes express notifications, file movement and API calls, reusing parameters and alerting. Approval flows need forms and sign-off nodes, so business systems keep that part and the scheduler triggers follow-up work on completion.
Integration & Code Examples
Define and submit a workflow with the Python SDK
from pydolphinscheduler.core.workflow import Workflow
from pydolphinscheduler.tasks import Python, Shell
with Workflow(
name="orders-etl",
schedule="0 0 2 * * ? *",
user="data-team",
tenant="data",
release_state="ONLINE",
) as flow:
extract = Shell(
name="extract-orders",
command="python /opt/jobs/extract_orders.py ${system.date}",
)
transform = Python(
name="transform-orders",
definition="transform_orders.py",
parameters={"dt": "${system.date}"},
)
extract >> transform
flow.run()
Trigger a backfill through the API
# trigger a date-range backfill; project and definition codes come from the workflow definition
curl -X POST "http://scheduler.example.com:12345/dolphinscheduler/projects/${PROJECT}/executors/execute" \
-H "token: ${DS_TOKEN}" -H "Content-Type: application/json" \
-d '{"processDefinitionCode":1234567890,"scheduleTime":"2026-11-01 00:00:00,2026-11-07 00:00:00","failureStrategy":"CONTINUE","execType":"COMPLEMENT_DATA"}'
The range and failure strategy travel in the request body; CONTINUE lets later dates proceed, so the whole range runs before individual failures are handled.
Community & Resources
- Apache DolphinScheduler website — project overview, downloads and ecosystem
- Documentation — deployment, upgrade and usage guides
- GitHub repository — Apache-2.0 source, issues and releases
- Architecture — service roles and fault tolerance
- Python SDK — defining and submitting workflows in Python
- Mailing lists — development discussion and release news
- Issue tracker — bug reports and feature requests
Articles
- 01 Video SEO for Google Search and YouTube 07-18
- 02 Triggered Email Design: Events, Eligibility, and Frequency 07-18
- 03 Online Form Builder Comparison 11-26
- 04 Cold email costs: volume, warm-up and re-domaining 07-18
- 05 Email Bounce Causes and Responses 07-18
- 06 E-Signature and Contract Cost Structure 07-18
- 07 Choosing Free Mailbox and Sending Quotas 11-26
- 08 Community Forum Ownership: Hosted Service or Own Server 11-26
- 09 Cookie Consent Platform Selection 11-26
- 10 Choosing Team Messaging for China-Based Teams 11-26