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.
| Component | Role | Runs as |
|---|---|---|
| Workflow controller | Reconciles Workflow objects and launches pods | Deployment in the cluster |
| Argo Server | Serves the API and web user interface | Deployment with a service |
| Executor | Captures outputs, artifacts and logs per step | Init and wait containers in each pod |
| Artifact repository | Stores files passed between steps | S3, GCS, Azure Blob or MinIO |
| Workflow archive | Keeps history of completed runs | PostgreSQL or MySQL |
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 type | What it does | Typical use |
|---|---|---|
| container | Runs one container image with a command | A single processing step |
| script | Runs inline code in a container | Short Python or shell logic |
| resource | Creates or patches a Kubernetes object | Launching a Spark or training job |
| suspend | Pauses until resumed or a timeout passes | Manual approval gate |
| http | Calls an HTTP endpoint without a pod | Webhook notification |
| steps / dag | Orchestrates other templates | Defining the overall flow |
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.
| Tool | Definition format | Execution unit | Best fit |
|---|---|---|---|
| Argo Workflows | YAML custom resource | Kubernetes pod per step | Container batch jobs, ML pipelines |
| Airflow | Python DAG files | Task on a worker or pod | Scheduled data engineering |
| Prefect | Python flows | Task in a worker process | Dynamic Python data pipelines |
| Temporal | Code in several languages | Durable activity on workers | Long-running business transactions |
| AWS Step Functions | Amazon States Language JSON | Managed state transitions | Serverless AWS orchestration |
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.
| Situation | Recommendation | Reason |
|---|---|---|
| Team runs workloads on Kubernetes | Adopt Argo Workflows | Reuses cluster scheduling and RBAC |
| Heavy parallel fan-out over files | Use DAG with withParam | One pod per item scales horizontally |
| Pipelines written by Python analysts | Consider Hera or Airflow | YAML is unfamiliar to analysts |
| SaaS-to-SaaS business automation | Choose an iPaaS tool | No pods needed for API calls |
| Millisecond-latency event handling | Avoid pod-per-step design | Pod startup takes seconds |
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.limitand 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.