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.

Automation China 2026.11.30 0 views
4pts
Advertisement

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

Role split: the API accepts work, Masters dispatch, Workers execute API service UI and REST entry points Master parses DAGs, dispatches, recovers Worker runs tasks and reports state Registry: Master and Worker heartbeats plus service discovery coordinates multiple instances to avoid a single point Database: definitions, instance state, log indexes MySQL or PostgreSQL, sized by instance volume Alert service: failures, timeouts and backfill results via email, DingTalk, WeCom or webhooks Masters and Workers scale horizontally, with tasks routed to workers by tenant and queue (scope: architecture docs, 2026-11) Current line 3.4.x, Java implementation, Apache-2.0 licence
Figure 1: Decentralised service roles and data flow (scope: official architecture docs, 2026-11)

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

No licence fee: cost sits in hosts, database and operations Software licence Apache-2.0, free for commercial use no seat fee, no instance cap, source editable redistributions keep the licence and notices Hosts and database four role instances plus one database minimum production starts at two Masters and two Workers MySQL or PostgreSQL sized by instance volume Operations effort deployment, upgrades, alert integration major upgrades follow the notes step by step dashboards and log archiving are built in-house Optional commercial support vendor-hosted service and support contract priced by environment and support level fits teams without dedicated operations staff (scope: official docs and repository licence, 2026-11; host and database costs follow your cloud or colocation)
Figure 2: Self-hosting cost breakdown (scope: official docs and repository licence, 2026-11)

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

Visit Apache DolphinScheduler Website → https://dolphinscheduler.apache.org/
Visit Website ↗