1. Avalanche Cloud
  2. Deployments

delta deploy uploads your project and creates a deployment: a frozen copy of the code and its dependencies. New runs of a workflow use its current deployment.

Rendering diagram…

​
What happens on a deploy

The new deploymentBecomes current for its workflows
Runs already in progressFinish on the version they started with
Schedules and webhooksFollow the current deployment

​
Go back

In the console, open the workflow’s Deployments tab and choose Set current on an earlier deployment. From the command line:

delta deployments list
delta deployments rollback --flow process_invoice     # back to the previous version
delta deployments promote DEPLOYMENT_ID               # to a specific version

Nothing is rebuilt: the earlier version is already stored. The choice holds until the next deploy.

​
Run a specific version

delta runs start process_invoice --input '{...}' --deployment DEPLOYMENT_ID

​
Get the code back

delta clone PROJECT ./my-project

This creates a folder with the deployed source, ready to edit and deploy again.