Cloudera Workflow Orchestrator architecture: Core components and data flow

Cloudera Workflow Orchestrator is designed as a distributed, scalable platform for workflow orchestration. The separate DAG Processing architecture in Cloudera Workflow Orchestrator is a robust deployment model designed for high-security and high-scale environments. In this setup, the responsibility of parsing Python files into DAG objects is removed from the Scheduler and assigned to a standalone component.

The Cloudera Workflow Orchestrator architecture consists of the following core components:

Figure 1. Cloudera Workflow Orchestrator architecture
  • API Server – The API Server provides the User Interface (UI). It communicates with the Metadata Database to display DAG runs, task status, and logs in the Cloudera Workflow Orchestrator UI.
    • Role – Handles visualization and manual intervention.
    • Capabilities – Allows users to trigger DAGs, clear failed tasks, and manage environment variables or connections.
  • Metadata Database – Cloudera Workflow Orchestrator requires a relational database to store the state of all tasks and workflows. It stores the serialized DAG structures and tracks the following information:
    • Task states such as running, success, or failed
    • Execution history
    • Schedule intervals
    • User permissions

    Supported databases – PostgreSQL

  • Scheduler – Monitors the Metadata Database for tasks that are ready to run based on their dependencies and schedules. When a task is ready, the Scheduler triggers it through the Executor, which is a part of the Scheduler process, for execution.
  • Executor – Determines how the work is distributed across the environment. Rather than a separate process, it functions as a mechanism that runs inside the Scheduler.
    • Local Executors – Run tasks on the same machine as the Scheduler (Sequential, Local).
    • Remote Executors – Push tasks to a pool of workers (Celery, Kubernetes).
  • DAG Processor – Parses the DAG files from storage, runs the Python code, and serializes the resulting DAGs into the metadata database.

    In the Cloudera Workflow Orchestrator architecture, the DAG Processor runs as a separate process (or set of processes) rather than a sub-thread of the Scheduler. This provides parser isolation. Because the Scheduler no longer runs the DAG author's Python code, a malicious or poorly written DAG cannot crash the Scheduler or access the Scheduler environment or secrets.

  • Worker – Runs tasks and updates the status in the Metadata Database.

    In a distributed setup, the Workers are the "brawn" of the operation. They listen for tasks assigned by the Executor, run the code defined in the operators, and report the results to the Metadata Database.

  • Triggerer – Runs an event loop as a separate service to handle asynchronous tasks.

    When a task enters a deferrable state such as waiting for a file to appear or a long-running external job to finish, the task releases its worker slot and execution resources. The Triggerer starts monitoring that task and when the external condition is met, the Triggerer sends a signal to the Metadata Database. The Scheduler then requeues the task for a Worker to complete the final steps.

    Because the Triggerer uses the asyncio Python library, a single Triggerer process can monitor thousands of deferred tasks simultaneously with minimal CPU and memory usage ensuring that the system scales efficiently. By using the Triggerer, you maximize worker availability for actual processing work rather than idle waiting.

For more information about Separate DAG processing architecture, see Separate DAG processing architecture.

These components interact with each other to move a task from a script to a completed state in the following steps:
  1. Parsing – The Scheduler reads the Python DAG files from storage.
  2. Scheduling – The Scheduler identifies tasks that have met their dependencies and updates their status to SCHEDULED in the metadata database.
  3. Queuing – The Executor picks up these tasks and places them in a queue. For example, Redis or RabbitMQ for Celery.
  4. Execution – A Worker pulls the task from the queue and runs the logic defined in the DAG script.
  5. State update – When the task finishes, the Worker updates the task status to SUCCESS or FAILED in the database.
  6. Monitoring – The API Server fetches this state from the database to update the UI for the user.