The suspend workflow step pauses the execution of the workflow. This can be used to orchestrate dependencies and wait for them before continuing. Notice that if no
duration is predefined, the workflow would need to be resumed to continue with the execution. To resume a workflow use the Playground CLI with the following command:
playground apps resume <appName>
The following snippet contains and application that waits for 30 seconds before deploying the components. For more information on the later step, check the apply-application documentation.
apiVersion: core.oam.dev/v1beta1 kind: Application metadata: name: my-app spec: components: - name: my-component type: worker properties: image: my-app-image:v1.0.0 workflow: steps: - name: step-1 type: suspend # set to suspend properties: duration: "30s" # (Optional) how long the application will be suspended - name: step-2 type: apply-application