Understanding Workflow Services Status Conditions

This document describes the Status and Conditions of a SonataFlow object managed by the SonataFlow Operator.

Kubernetes Status is an important property to observe in order to understand what is currently happening with the object. It can also help you troubleshoot or integrate with other objects in the cluster.

General Status

The table below lists the general structure of a workflow status:

Table 1. Description of SonataFlow Status object
Status Description

ObservedGeneration

Last object generation observed by the status

Conditions

Current observed workflow conditions

Address

External or internal workflow access endpoint. Implements the Knative Addressable Interface

RecoverFailureAttempts

How many attempts the operator tried to recover from a failure

The Conditions property might vary depending on the workflow profile. The next sections describe the current implementation.

Development Profile Conditions

When you deploy a workflow with the development profile, the operator deploys a ready-to-use container with a running workflow instance.

The following table lists the possible conditions.

Table 2. Conditions Scenarios in Development
Condition Status Reason Description

Built

Unknown

In development profile there’s no build process, so this state remains in Unknown status

Running

True

The workflow is running and in healthy state

Running

False

WaitingForDeployment

The workflow is waiting for the underlying deployment object to have a minimum availability

Running

False

DeploymentFailure

There was a problem with the underlying deployment object. Check the message in this condition and the workflow pod logs for more info

Running

False

DeploymentIsUnavailable

The underlying deployment object doesn’t have the minimum availability for this workflow. Check the message in this condition and the workflow pod logs for more info

Running

False

AttemptToRedeployFailed

If the workflow deployment is not available, the operator will try to rollout the deployment three times before entering in this stage. Check the message in this condition and the workflow pod logs for more info

In normal conditions, the workflow will transition from Running, WaitingForDeployment condition to Running. In case something wrong happens, consult the section Workflow Troubleshooting in Development.

Production Profile Conditions

Deploying the Workflow in Production profile makes the operator build an immutable image for the Workflow application. The progress of the immutable image build can be followed by observing the Workflow Conditions.

Table 3. Condition Scenarios in Production
Condition Status Reason Description

Built

False

BuildIsRunningReason

The build is currently running

Built

False

BuildFailedReason

The build has failed and any attempts to have it run failed

Built

True

Last build has finished successfully

Running

True

The workflow is running and in healthy state

Running

False

WaitingForPlatform

The Workflow can’t have a Pod running until a SonataFlowPlatform is ready

Running

False

WaitingForBuildReason

The workflow is waiting for the build to finish to start running

Running

False

WaitingForDeployment

The workflow is waiting for the underlying deployment object to have a minimum availability

Running

False

DeploymentFailure

There was a problem with the underlying deployment object. Check the message in this condition and the workflow pod logs for more info

Running

False

DeploymentIsUnavailable

The underlying deployment object doesn’t have the minimum availability for this workflow. Check the message in this condition and the workflow pod logs for more info

Running

False

AttemptToRedeployFailed

If the workflow deployment is not available, the operator will try to roll out the deployment three times before entering this stage. Check the message in this condition and the workflow pod logs for more info

When building an image for a Workflow resource, a SonataFlowBuild will first be created and the operator will wait for the associated build to finish. Once the build is complete, the Workflow transitions to the deployment phase, which will provide a new Workflow service Pod to run with the built image.

Found an issue?

If you find an issue or any misleading information, please feel free to report it here. We really appreciate it!