Retrieved article excerpt
Open article · Retrieved 2026-10-20T21:31:09.768356+00:00
# 1 Background
A [workflow
orchestrator](https://github.com/resources/articles/what-is-workflow-orchestration) is a software system which executes computations made
up of small *tasks*. Tasks are connected in a *workflow*,
which routes the outputs of some tasks to the inputs of others,
determines which tasks may be scheduled and when, and so on. The
orchestrator manages workflows and specific executions of them, runs
their tasks, persists state, and tries to drive each execution to
completion.
[Conductor](https://orkes.io/platform) is a workflow
system [originally built
by Netflix](https://github.com/netflix/conductor) and open sourced in 2016.[1](https://jepsen.io/analyses/orkes-conductor-5.3.2#fn1) The
open source version, [Conductor OSS](https://github.com/conductor-oss/conductor), is
now maintained by the [Conductor OSS
Foundation](https://conductor-oss.org/). This foundation is led by [Orkes](https://orkes.io/blog/differences-between-conductor-oss-vs-orkes-conductor),
whose founders helped build Conductor at Netflix. Orkes also offers a [hosted version of Conductor](https://orkes.io/platform) with
additional features, called *Orkes Conductor*. This analysis
focuses on Orkes Conductor, which we call *Conductor* for
short.
In Conductor, a *workflow definition* is a JSON structure that
defines which tasks must be executed, their order, what their inputs and
outputs should be, and so on. Each workflow definition is identified by
a name and a version. For example, a workflow definition could specify
that to adopt a cat, one must first complete an application, then
schedule a vet visit, and receive vaccination records from the vet. A
workflow may also accept an input (say, the name of the cat) and produce
an output (like a certificate of adoption).
A workflow definition may be run many times—say, once for each cat to
be adopted. Each instance is called a *workflow execution*, but
we often call an execution a “workflow” for short. Each execution is
identified by a unique *workflow ID*. During an execution a task
may also be attempted multiple times (e.g. in case of failure), and each
attempt receives a unique *execution ID*.
Some tasks are built into Conductor. Some are *system tasks*,
like making HTTP requests or submitting events to a log like Kafka.
Others are called *operators*—these provide control flow like
conditionals, fork/join, loops, and so on. Operators may execute
ECMAScript code to perform user-defined logic. Finally there are
*worker tasks*, which are written by users to perform the
“business logic” of the system.
To start an execution of a workflow, one can make an API call to
Conductor, submit an event through a message broker, or use Conductor’s
built-in `cron`-style scheduler. Once acknowledged, Conductor
schedules the workflow’s tasks and attempts to drive it to
completion.
## 1.1 Architecture
Conductor [has
five major components](https://orkes.io/academy/learn/56cf6301-6257-4bf3-8df8-513cc752a47d). Conductor servers are stateless processes
which manage workflows and schedule execution. They provide an API and
user interface, interact with external services, and track state. The
definitions of workflows, the state of their executions and the results
of tasks are stored in a database like Postgres, Cassandra, or Redis.
Conductor also uses a queue—often Redis—to dispatch work to various
processes, and to store short-lived state. Finally, there are two pools
of stateless workers: standard workers which execute Conductor’s
built-in tasks, and custom workers, which are written by users using [SDKs for various
languages](https://github.com/conductor-oss#conductor-sdks). All workers [connect to a
Conductor server](https://orkes.io/content/conductor-architecture), poll the server for tasks, execute them, and send
results back to the server.
Each component may be scaled independently. Any number of servers and
workers can run concurrently, and nodes may be killed and restarted at
any time. In version 5.3.2, the database and queue were both required to
preserve all acknowledged writes. However, version 5.4.0 introduced a
new option which enabled the use of a lossy storage system for all
queues except for the main *decider queue*.
## 1.2 Guarantees
Conductor guarantees [“at
least once message delivery”](https://orkes.io/content/error-handling#message-delivery-guarantees), ensuring that all messages are
persistent and will be delivered to task workers one or more times.
Conductor also guarantees that workflows eventually terminate. “If a
workflow has started, it will run to completion as long as all its tasks
are completed.” This does not necessarily mean that workflows and tasks
execute successfully. [Tasks
can run out of retry attempts](https://orkes.io/content/developer-guides/task-and-workflow-status-in-conductor), fail with non-retryable errors, or be
explicitly canceled—and a similar state machine applies to workflow
executions. However, workflows should eventually converge on a [terminal
status](https://github.com/conductor-oss/conductor/blob/411a800f2f29af2bc3af112c3b1b0ecfc6582b46/common/src/main/java/com/netflix/conductor/common/run/Workflow.java#L34-L40): `COMPLETED`, `FAILED`,
`TIMED_OUT`, or `TERMINATED`.
When tasks are executed, each attempt receives a unique execution ID,
and also a unique *retry count*, which [indicates
the number of attempts already performed](https://orkes.io/content/sdks/golang#retry-count-and-logs).
Orkes says that for each workflow execution, each instance of a task
has at most one visible successful execution. Tasks may execute
successfully multiple times—for instance, if a Conductor server loses
its connection to the database just before persisting the completion of
the task execution. However, once the output of a successful task
becomes visible, no task, workflow, or API call will observe a different
output.[2](https://jepsen.io/analyses/orkes-conductor-5.3.2#fn2)
# 2 Test Design
To verify these properties, we built a [test harness](https://github.com/jepsen-io/conductor) for Orkes
Conductor using the [Jepsen
testing library](https://github.com/jepsen-io/jepsen) and the [Conductor Java SDK](https://github.com/conductor-oss/java-sdk)
at version 5.0.1. We used this harness to test Orkes Conductor 5.3.2,
5.4.0, and 5.5.0-rc1 and -rc2.
Orkes typically deploys Conductor in cloud environments with Postgres
(or a Postgres-compatible database, like their in-house [ParticleDB](https://particledb.ai/)) as the primary database,
and Redis (or a compatible service like [Valkey](https://aws.amazon.com/elasticache/what-is-valkey/)) as
the queue. To approximate these deployments, we set up clusters of ten
Debian machines, both in containers and as separate EC2 VMs: a single
Postgres node for the database, either a single Redis node or Redis
Cluster for the queue, and the remaining nodes split evenly between
Conductor servers, Conductor’s standard workers, and a [custom
worker](https://github.com/jepsen-io/conductor/tree/1e9860de4c3ae063dfcb1017a98b1f5c657e4302/worker) we wrote using the Java SDK.
Our [test
workload](https://github.com/jepsen-io/conductor/blob/main/src/jepsen/conductor/workload.clj) defined a single workflow with one task, handled by our
custom worker. The task slept up to 30 seconds to simulate work being
done, then [returned
a randomly generated output](https://github.com/jepsen-io/conductor/blob/1e9860de4c3ae063dfcb1017a98b1f5c657e4302/worker/src/jepsen/conductor/worker.clj#L104). It also [logged
its execution](https://github.com/jepsen-io/conductor/blob/1e9860de4c3ae063dfcb1017a98b1f5c657e4302/worker/src/jepsen/conductor/worker.clj#L106-L114) with the test harness, so we could tell exactly which
tasks had run and when, along with their observed inputs and intended
outputs.
Our test proceeded in three phases. During the [main
phase](https://github.com/jepsen-io/conductor/blob/1e9860de4c3ae063dfcb1017a98b1f5c657e4302/src/jepsen/conductor/generator.clj#L276-L299), the test harness called [`startWorkflow()`](https://github.com/jepsen-io/conductor/blob/1e9860de4c3ae063dfcb1017a98b1f5c657e4302/src/jepsen/conductor/client.clj#L157-L170)
with unique inputs (to distinguish executions from one another), [kept
track](https://github.com/jepsen-io/conductor/blob/1e9860de4c3ae063dfcb1017a98b1f5c657e4302/src/jepsen/conductor/generator.clj#L36-L88) of which executions were in-progress and which were terminal,
and checked the status of specific executions using
`getWorkflow()`. To discover executions when the call to
`startWorkflow()` timed out or failed, we periodically called
[`getRunningWorkflow()`](https://github.com/jepsen-io/conductor/blob/1e9860de4c3ae063dfcb1017a98b1f5c657e4302/src/jepsen/conductor/client.clj#L185-L189)
to list all in-progress executions. During the main phase we also
injected [a
variety of faults](https://github.com/jepsen-io/conductor/blob/1e9860de4c3ae063dfcb1017a98b1f5c657e4302/src/jepsen/conductor/nemesis.clj), including pausing and killing processes, as well
as network partitions between Conductor servers and Postgres, Redis, and
worker nodes.
During the [recovery
phase](https://github.com/jepsen-io/conductor/blob/1e9860de4c3ae063dfcb1017a98b1f5c657e4302/src/jepsen/conductor/generator.clj#L301-L307), the test ended network partitions, restarted and unpaused
processes, etc., then let the cluster recover. To figure out when the
system had converged on a steady state, we polled the depth of
Conductor’s decider queue. When this queue reached zero, Conductor had
nothing more to do and the test moved to the final phase.
During the [final
phase](https://github.com/jepsen-io/conductor/blob/1e9860de4c3ae063dfcb1017a98b1f5c657e4302/src/jepsen/conductor/generator.clj#L309-L316), the test read the state of every workflow execution it had
ever seen. We then searched for [a
variety of unexpected behaviors](https://github.com/jepsen-io/conductor/blob/1e9860de4c3ae063dfcb1017a98b1f5c657e4302/src/jepsen/conductor/checker/workflow.clj#L985-L1029):
Backend Error:
: Some request returned an unexpected backend error.
Concurrent Execution:
: Two or more workers attempted to execute the same task in a single
workflow execution at the same time.
Different Task Input:
: Two views of the same task in the same workflow execution had different
inputs, or a task’s input was inconsistent with the workflow’s input.
Different Workflow Input:
: A single workflow execution had two different inputs.
Different Workflow Output:
: A single workflow execution had two different outputs.
Duplicate Workflow ID:
: Two calls to `startWorkflow` returned the same workflow
execution ID.
G1a:
: A `startWorkflow` request returned what appeared to be a
definite failure, but a workflow with that requested input was later
visible to some reader.
Impossible Output:
: A workflow execution’s output was inconsistent with the outputs of its
tasks.
Incomplete:
: A workflow execution was not in state `COMPLETED` during the
final phase.
Missing:
: A read failed to observe a workflow execution after we knew it existed.
Never Started:
: A workflow came into existence with no corresponding
`startWorkflow` request.
Null Workflow ID:
: A `startWorkflow` call returned `null`, rather
than a workflow ID string.
Task Never Executed:
: None of a workflow’s tasks were ever executed.
# 3 Results
## 3.1 Tasks Execute Concurrently (#1)
Under normal operation, healthy Conductor clusters occasionally
executed the same task for the same workflow execution on two workers
concurrently. This is not surprising, since [mutual exclusion
is impossible in asynchronous networks](https://inria.hal.science/hal-03347878/document). However, it is worth keeping
in mind that even very short-lived tasks may be executed at the same
time! In [this
test run](https://s3.amazonaws.com/jepsen.io/analyses/orkes-conductor-5.3.2/20260702T224204-concurrent-execution.zip), workflow
`3919784b-7691-11f1-a292-0016