Deployments
A deployment runs one tagged version of an Unstract Flow workflow on a schedule, when another system calls its webhook, or when you start it. Deployments are listed on the Deployments page, and each project's Deployments tab lists the deployments of that project's workflows.
Create a deployment
-
Tag the prepared version you want to run. Workflows, versions and tags explains tags.
-
On the Deployments page, or a project's Deployments tab, select New deployment.
-
Enter a Deployment Name.
-
On the Deployments page, pick a Project. It starts at All projects and narrows the Workflow list below it; picking another project clears Workflow. A project's Deployments tab has no Project menu, because the project is already decided there.
-
Pick the Workflow and its Version (Tagged). Each tag shows the spec version it was prepared from, for example
v1.0 (v3).The Workflow list holds workflows with a finished build that aren't archived. At All projects those are the ones you created in projects you can still open and the ones in projects shared with you; with a project picked, that project's workflows, which is also what a project's tab offers.
-
Pick a Trigger Type. For a schedule, the dialog also asks for its Timezone.
-
Pick a Visibility: Private (Only me) or Shared (All team members). A private deployment is visible to you alone, and only you can edit, pause or delete it; Owners and Admins can't see it either. Members can't delete deployments. To remove a Member's private deployment, the Member sets Visibility to Shared (All team members) so an Owner or Admin can delete it, or the workflow is deleted with it. Archiving the workflow pauses it.
-
Select Create deployment.
-
The new deployment starts Paused; the dialog and the confirmation say so. Select Resume on its row to start it. Resume is refused when a connector the tagged version uses was removed or re-added since it was prepared: prepare the workflow again, tag it, and change Version (Tagged) under Edit. Changing Version (Tagged) on an active deployment isn't checked this way: pick a tag prepared after the workflow's connectors last changed.
Until you resume it, a new deployment's schedule doesn't fire, Run now is unavailable, and its webhook answers 400.
| Trigger type | When it runs |
|---|---|
| Scheduled (Cron) | On a schedule. See Scheduled deployments. |
| Webhook (HTTP) | When another system sends a request to its URL. See Webhook deployments. |
| On-Demand (Manual) | When you select Run now. The dialog says "Nothing will run on its own". |
The deployment stays on the steps of the version you picked. The dialog says so: "Only the steps are locked to this version. Credentials, secrets, connector settings, default inputs, call limits and input files come from the workflow and its project as they are now." The reference tables the spec names come from the project too: each run reads the import that is current when it first reads the table, and keeps it until the run ends. Changing any of them changes what the deployment does. A 3270 step's Key Mappings default is the one exception: each version keeps the one it was prepared with, so a change reaches the deployment only after you move it to a version prepared after the change. Input files and secrets belong to the project, so a change on the project's page reaches this deployment's runs; an input file changed in the editor of any workflow in the project does too. Removing a credential from the project takes it off this workflow's connector instances too, and the steps that use it fail until someone picks another credential. Moving the workflow to another project switches it to that project's input files, secrets and reference tables. The move copies into the new project the files, secrets and reference tables the spec names that the new project doesn't have, and adds the credentials its connector instances use when you own them or have them shared. A credential you can't add comes off its connector instances, and the deployment's runs fail at the steps that use it until someone picks another credential; Move a workflow to another project lists what the dialog shows. To move the deployment to a newer version, tag that version, then select Edit on the deployment and change Version (Tagged).
While the workflow has a deployment shown as Active or Never run, including another member's private one, the editor shows a note where you change what the deployment reads. Saving works as usual.
| Where | The note |
|---|---|
| The Tools tab, and a connector instance's Configure dialog | "This workflow has a live deployment. Changes to its tools, credentials and settings reach the deployment within 2 minutes." |
| A step's gear dialog (default inputs and Rate Limit for [instance] (calls/hour)), and Review settings for hitl:N | "This workflow has a live deployment. Changes here reach its runs within 2 minutes, including runs already going." |
| A 3270 step's gear dialog | "This workflow has a live deployment. Changes here reach its runs within 2 minutes, including runs already going, except Key Mappings, which reach it only through a newly prepared version." |
| The Settings tab's Tool call rate limit (per hour) | "This workflow has a live deployment. A new limit applies to its runs that start after you save." |
No note appears on the editor's Files tab or on the project page's Data (reference tables and input files), Credentials and Secrets tabs, though the deployment reads what they change. The editor checks for an active deployment when you open the workflow, so reopen it after you resume, pause or delete a deployment.
The Deployments page
The table shows each deployment's Type, Schedule, Last Run, Next Run and Status. Next Run is shown in the schedule's Timezone, which is named beside it, so it matches the Schedule column and the deployment's own page. Last Run is shown in your own time zone, because it's a time something happened rather than a time you set. Both columns also show how long ago, or how long until, above the date: "5 minutes ago", "in 3 days". That is measured from the moment itself, so it reads the same whatever zone you are in and whatever zone the schedule runs in. Its footer shows how many runs your organization can have in flight at once, counting runs from the editor and the API as well as from deployments.
The project menu beside the filters starts at All projects. Pick a project to show only the deployments of its workflows. It offers your projects, the ones shared with you and, for organization owners and admins, other members' projects. The page keeps the choice in its address as ?project_id=, so a link or a reload keeps it. A link to a project you can't open, such as a deleted one, opens at All projects. A project's Deployments tab is the same page, fixed to that project, with no project menu.
The search and the type and status filters belong to the list you set them on. Opening the Deployments page or a different project's Deployments tab clears them; coming back to the same list, such as from a deployment's page, keeps them.
| Status | Meaning |
|---|---|
| Active | The deployment runs when its trigger fires. After a run fails, the row also shows the count: "1 consecutive failure" or "2 consecutive failures". Deployment health explains what counts. |
| Paused | The deployment doesn't run until you resume it. Archiving the workflow pauses its active deployments; a Failing one stays Failing. None can be resumed until the workflow is unarchived. |
| Never run | The deployment is active and hasn't run yet. |
| Failing | Three runs in a row failed, and the deployment stopped. Select Resume to start it again. |
Run, pause and delete
Each row has a button and a menu. The button is Run, or Resume when the deployment is paused; on a Failing row it's unavailable. On a Paused or Failing row, Run now is unavailable. On a Failing row the menu has Resume in place of Pause. A Viewer sees neither the button nor Run now, Edit, Pause or Resume, here or on the deployment's page. The menu holds:
- Run now starts a run and opens a window that follows its logs. The run gets no inputs.
- View details opens the deployment's page, with its health, runs and activity. Deployment health covers it.
- View runs opens the deployment's runs.
- Edit changes the name, Version (Tagged), Visibility, Automatic Retry and, for a schedule, its fields. For a webhook, it also changes Parallelism.
- Pause stops the deployment: "The schedule stops firing until you resume it. Nothing is deleted." The dialog names the next run that won't fire, when there is one, in the schedule's Timezone. Resume starts it again. Pausing or deleting doesn't stop runs already in flight; cancel those from the Runs page.
- Delete asks you to type the deployment's name. Only an Owner or Admin sees Delete and can delete a deployment; a Member can pause one instead. Its webhook URL starts answering 404. The deployment's runs and their logs stay on the Runs page. The delete button on the deployment's own page opens the same dialog.