The lifecycle of a deployment determines its readiness to accept user requests and serve traffic.
From an API standpoint, each deployment has a
readyState field which can take one of the following values:
INITIALIZING a deployment in this state is waiting on builds to complete
ERROR one or more builds failed
READY builds completed successfully or none were specified
An illustration of the deployment
When a deployment is
READY, our system guarantees that it can be served at any time and that all the underlying serverless functions are available in the specified regions.
No further state transitions are necessary, and all deployment entrypoints are expected to be served within milliseconds.
When a deployment has more than one underlying builds, each build has its own states and lifecycle.
Now CLI displays and updates the evolution of the builds' states until the deployment completes.
An illustration of a build's lifecycle.
Each build process goes through:
INITIALIZINGthe initial state
ANALYZING to determine if the build has to be performed or it can be de-duplicated
BUILDING while executing the Builder code
UPLOADING to upload the files and resulting lambdas
DEPLOYING to deploy the necessary files and functions
READYif the deployment is successful
ERRORif the deployment fails
ERRORif an upload fails
ERRORif an error occurs during the build code executions
READYif no build is necessary
ERRORif an error occurs during the analysis code execution