Skip to main content

Deployment lifecycle and flow

This guide explains what happens after a deployment is created—from initialization through rollout and rollback.

Lifecycle stages

Each deployment progresses through a series of statuses:

StatusDescription
creating_approvalWaiting for approval before the deployment can be created.
creating_approval_deniedThe request to create the deployment was denied.
creatingThe deployment is being created.
waiting_for_instancesThe deployment is initializing instances.
runningThe deployment is up and running.
finalizingThe deployment is wrapping up final steps.
finalizedThe deployment is complete and stable.
cancellingThe deployment is being canceled.
cancelledThe deployment was successfully canceled.
failedSomething went wrong, and the deployment failed.
rolling_backThe deployment is being rolled back to a previous stable version.
rolled_backThe rollback is complete.
deletingThe deployment is being deleted.
deletedThe deployment was successfully deleted.

Built-in rollout strategies

Nullplatform supports two primary deployment strategies.

Initial deployment

Used when the scope has no previous deployments.

Steps:

  • Provision infrastructure
  • Wait for instance readiness
  • Mark the deployment as RUNNING > FINALIZED

Blue-Green deployment

Used when replacing an existing deployment. This strategy:

  • Provisions a new environment ("green")
  • Gradually shifts traffic from the existing deployment ("blue")
  • Allows rollback if needed (manual or automatic)

Strategy diagram

Strategy data

When interacting with deployments via API or telemetry, the strategy_data object tracks the current rollout state.

FieldTypeDescription
switched_trafficintegerCurrent percentage of traffic on new version (0-100)
desired_switched_trafficintegerTarget traffic percentage for new version
amount_instances_to_waitintegerRequired number of instances before proceeding
healthy_instancesintegerCurrent count of healthy instances
launched_instancesintegerTotal instances launched
switch_traffic_stepbooleanIndicates active traffic switching phase

Defining your own strategies

You can define custom strategies in the UI using Platform Settings > Deployment Strategies.

For details, see Reusable strategies.