Argo Workflows

On this page 7

Argo Workflows is an open-source, container-native workflow engine for Kubernetes that runs each step of a job as its own pod, orchestrated from a declarative YAML definition stored as a custom resource. Automation platforms differ widely in where they execute work, and Argo Workflows sits at the infrastructure end of that range: it targets batch processing, machine learning pipelines, data transformation and CI/CD inside a cluster rather than connecting SaaS applications.

The project is a graduated project of the Cloud Native Computing Foundation (CNCF), alongside sibling tools such as Argo CD and Argo Events. Its central idea is that a workflow is simply another Kubernetes object, so it inherits the cluster’s scheduling, resource limits, secrets and access control without a separate runtime.

How Argo Workflows executes a workflow

Argo Workflows executes a workflow by turning a Workflow custom resource into a series of pods that the workflow controller creates, watches and records. A user submits the manifest with the argo CLI, the API server or kubectl; the controller then evaluates which steps are ready, launches their pods and updates the resource status after every change.

Each pod contains the user’s main container and a small executor sidecar (historically argoexec) that collects outputs, artifacts and exit codes. Because state lives in the Workflow object itself, the controller can restart without losing progress, and very large workflows can offload node status to a database through the status offloading feature.

The following table lists the main components and the role each one plays at run time.

ComponentRoleRuns as
Workflow controllerReconciles Workflow objects and launches podsDeployment in the cluster
Argo ServerServes the API and web user interfaceDeployment with a service
ExecutorCaptures outputs, artifacts and logs per stepInit and wait containers in each pod
Artifact repositoryStores files passed between stepsS3, GCS, Azure Blob or MinIO
Workflow archiveKeeps history of completed runsPostgreSQL or MySQL
Core components of Argo Workflows

Templates, DAGs and steps

A workflow is built from templates, and the template type decides whether work runs in a fixed order or as a dependency graph. The two orchestration styles are steps, a list of sequential groups whose members run in parallel, and DAG, where each task declares its dependencies and the controller starts it as soon as they succeed.

Templates can be reused through a WorkflowTemplate (namespaced) or ClusterWorkflowTemplate (cluster-wide), while a CronWorkflow runs a definition on a cron schedule. Parameters flow between tasks with expressions such as {{tasks.extract.outputs.parameters.rows}}, and loops with `withItems` or `withParam` fan out one task per input value.

Template typeWhat it doesTypical use
containerRuns one container image with a commandA single processing step
scriptRuns inline code in a containerShort Python or shell logic
resourceCreates or patches a Kubernetes objectLaunching a Spark or training job
suspendPauses until resumed or a timeout passesManual approval gate
httpCalls an HTTP endpoint without a podWebhook notification
steps / dagOrchestrates other templatesDefining the overall flow
Template types and when each applies

Control features include conditional execution with `when`, retry strategies with exponential backoff, exit handlers that run cleanup regardless of the result, and memoization, which skips a step whose inputs match a cached earlier run.

How Argo Workflows compares with other orchestrators

Argo Workflows differs from neighboring tools mainly in its execution model: every step is a container on Kubernetes, and the definition is YAML rather than application code. Airflow and Prefect describe pipelines in Python and run tasks on workers, Temporal persists durable function state, and AWS Step Functions is a managed state machine service.

ToolDefinition formatExecution unitBest fit
Argo WorkflowsYAML custom resourceKubernetes pod per stepContainer batch jobs, ML pipelines
AirflowPython DAG filesTask on a worker or podScheduled data engineering
PrefectPython flowsTask in a worker processDynamic Python data pipelines
TemporalCode in several languagesDurable activity on workersLong-running business transactions
AWS Step FunctionsAmazon States Language JSONManaged state transitionsServerless AWS orchestration
Argo Workflows and related orchestration tools

Argo Workflows is also not a continuous delivery tool in the GitOps sense; that role belongs to Argo CD. Many teams combine them, with Argo Events triggering a workflow from a webhook or message and Argo CD deploying the resulting artifact.

Choosing and configuring Argo Workflows

Argo Workflows is a strong choice when an organization already operates Kubernetes and wants each step isolated in its own image with its own CPU, memory and GPU requests. It powers the pipeline layer of Kubeflow Pipelines and is common in genomics, rendering and model training, where hundreds of parallel pods are normal.

SituationRecommendationReason
Team runs workloads on KubernetesAdopt Argo WorkflowsReuses cluster scheduling and RBAC
Heavy parallel fan-out over filesUse DAG with withParamOne pod per item scales horizontally
Pipelines written by Python analystsConsider Hera or AirflowYAML is unfamiliar to analysts
SaaS-to-SaaS business automationChoose an iPaaS toolNo pods needed for API calls
Millisecond-latency event handlingAvoid pod-per-step designPod startup takes seconds
Decision guide for adopting Argo Workflows

In production, operators should configure an artifact repository, enable the workflow archive, set podGC and ttlStrategy to delete finished pods, and bind each namespace to a dedicated service account with minimal RBAC. The Python SDK Hera lets developers write workflows in code that compiles to the same YAML.

Limitations and common mistakes

The main limitation of Argo Workflows is pod startup overhead: scheduling a pod and pulling its image usually takes several seconds to a minute, which makes very fine-grained steps inefficient. Large workflows can also exceed the etcd object size limit of about 1.5 MB unless status offloading is enabled.

  • Leaving completed pods in place fills the cluster with thousands of stale objects; configure pod garbage collection.
  • Passing large data as parameters strains etcd; move files and datasets through artifacts instead.
  • Granting the default service account broad rights exposes the cluster; scope permissions per namespace.
  • Splitting work into tiny steps multiplies startup cost; group short operations in one container.
  • Skipping retry limits lets a failing step loop indefinitely; set retryStrategy.limit and backoff.

The short version

Argo Workflows is a manager for multi-step jobs. You describe the steps and their order in a text file, and the tool runs each step in its own sealed box, called a container, on a shared group of servers.

Think of a factory line where every station is a separate booth with its own tools. When one booth finishes, the next one starts, and several booths can work at once. The key point is that Argo Workflows suits big technical jobs inside a server cluster, not quick links between everyday office apps.

Where it makes a difference

A research lab processes about 2,000 genome samples each week. Its data engineers define one Argo workflow: a first step lists new files in object storage, a DAG then fans out one alignment pod per sample with 8 CPU cores and 32 GB of memory each, and a final step merges the results into a report.

Before the change, a single script on one large server needed roughly three days per batch and failed silently when one sample crashed. With Argo Workflows, the cluster autoscaler adds nodes during the run, failed samples retry automatically up to three times, and an exit handler posts a summary to the team channel. The weekly batch now finishes in about six hours, and every run is archived with its inputs and logs for later audit.