Introducing a new way to review your PRs.

Read the announcement

semaphoreui / semaphore

Modern UI and powerful API for Ansible, Terraform/OpenTofu/Terragrunt, PowerShell and other DevOps tools.

View on GitHub

21 documents · Updated Nov 23, 2026

docs / web-project-workflows

Web project workflows

Web project workflows give an engineer one browser path from a project to its automation resources. The path supports project setup, task template runs, connected workflow runs, scheduled starts, and inspection of the resulting task and host state. This page complements Web console, Web realtime updates, and In-product help system.

Project context

The project context is the boundary for most automation work. A project choice sets the scope for templates, workflows, repositories, inventories, environments, keys, schedules, integrations, and hosts. The project drawer provides the main links, while a project URL without a subpage opens project history. References: web/…/App.vue• L139-245, web/…/App.vue• L277-370, web/…/index.js• L65-124

Automation resource paths

The browser presents automation as two related resource paths. A task template describes one runnable unit, while a workflow joins several units with control steps. Both paths keep project, resource, and execution identifiers in the URL so a user can return to a precise view.

Template collections

The template collection is the project view for choosing, grouping, and launching task templates. Views can filter the collection and can show counts by the last task status. A user can open a template, expand recent task history, edit views, or start a task from a row when the required permission is present. References: web/…/Templates.vue• L73-193, web/…/Templates.vue• L278-310, web/…/Templates.vue• L476-544, web/…/EditViewsForm.vue• L7-181, web/…/ViewTemplateStats.vue• L54-89

Template configuration

Template configuration turns a project resource into a runnable task definition. It connects a repository with an application action and may select an inventory, environments, a runner, a branch, survey variables, secret sources, vaults, schedules, and application-specific options. The available choices depend on the project data that the user can read and on the enabled product features. References: web/…/EditTemplateDialog.vue• L1-37, web/…/TemplateForm.vue• L106-179, web/…/TemplateForm.vue• L181-407, web/…/TemplateForm.vue• L410-830, web/…/TemplateForm.vue• L1434-1663

Task launch

Task launch turns one template into one execution. The form starts with template defaults and can collect survey answers, a build version for deploy tasks, an inventory, a branch, command options, and application parameters. It validates required values before sending the task and opens the task log after a successful save. References: web/…/NewTaskDialog.vue• L1-35, web/…/NewTaskDialog.vue• L89-99, web/…/TaskForm.vue• L46-220, web/…/TaskForm.vue• L398-503

Task history

Task history connects a template to its executions. A user can inspect status, rerun a task, move through older tasks, and follow links to task logs. Project events update the visible task and template status so a page can reflect a run without a manual full-page change. References: web/…/Templates.vue• L252-309, web/…/TaskList.vue• L1-139, web/…/TaskList.vue• L234-286, web/…/TaskList.vue• L295-355, web/…/Templates.vue• L580-617

Project resource configuration

Supporting resource views prepare the inputs that templates and workflows use. Repositories provide source code, keys provide access, inventories provide target hosts or external automation endpoints, environments provide variables and secrets, and schedules provide automatic starts. Managed inventories add host and variable views, while secret storage can supply or sync protected values. References: web/…/Repositories.vue• L7-25, web/…/Keys.vue• L7-27, web/…/Inventory.vue• L1-191, web/…/Inventory.vue• L222-330, web/…/InventoryView.vue• L18-48, web/…/Environment.vue• L7-31, web/…/SecretStorages.vue• L23-43, web/…/Schedule.vue• L7-27

The inventory view is the project entry point for creating and managing these target resources. Users with project-resource access can create an Ansible inventory, and the view can also expose an MCP inventory when an AI agent application is active. An MCP inventory groups named servers with their URLs and protected access tokens. Terraform and OpenTofu workspace rows can instead attach the workspace to a task template, while managed inventories open a detail view for host and variable work. References: web/…/Inventory.vue• L8-79, web/…/Inventory.vue• L95-190, web/…/InventoryForm.vue• L19-119, web/…/McpInventoryForm.vue• L8-179, web/…/constants.js• L170-220

Schedule configuration

Schedules start either a task template or a workflow. A schedule can run once at a chosen time or repeat from a calendar pattern, and the form shows the next run in both the configured schedule time zone and the browser's local time. Template schedules can carry task parameters, while workflow schedules depend on the workflow scheduling feature and keep workflow and template targets separate. References: web/…/ScheduleForm.vue• L22-24, web/…/ScheduleForm.vue• L44-123, web/…/ScheduleForm.vue• L141-195, web/…/ScheduleForm.vue• L221-372, web/…/ScheduleForm.vue• L983-1008, web/…/Schedule.vue• L48-189

Resource detail views

Resource detail views keep related setup in one browser area. A managed inventory exposes hosts and variables as separate tabs, while a template can expose Terraform or OpenTofu workspace state and an integration can target either a template or a workflow. These views make resource changes visible to the launch forms that depend on them. References: web/…/InventoryView.vue• L18-55, web/…/InventoryHosts.vue• L33-174, web/…/InventoryVariables.vue• L19-49, web/…/TemplateTerraformState.vue• L87-156, web/…/TemplateTerraformState.vue• L158-353, web/…/Integrations.vue• L66-171

Inventory host management gives users a project-scoped view of target machines. Users can search and page through hosts, inspect host variables, enable or disable a host, and add, edit, or delete hosts when they have resource-management access. Inventory variables provide a YAML editing view with save protection: unsaved changes prompt before navigation and update the parent inventory view after a successful save. References: web/…/InventoryHosts.vue• L33-174, web/…/InventoryHosts.vue• L219-375, web/…/InventoryVariables.vue• L19-49, web/…/InventoryVariables.vue• L94-174

Workflow lifecycle

The workflow lifecycle moves from a project list to a graph design, then to a run and its history. The browser keeps the project and workflow identifiers across these stages. A workflow URL without a subview opens the run list.

This diagram shows how a workflow moves from design to execution and inspection.

flowchart LR
    P[Project] --> L[Workflow list]
    L --> E[Create or edit workflow]
    L --> D[Run dialog]
    D --> R[Run detail]
    E --> L
    R --> H[Run history]
    R --> S[Run status and approvals]

Workflow collections

The workflow collection gives a project-wide view of workflow names, versions, last-run status, and last-run time. A user can expand one workflow to load recent runs, open a run, edit the workflow, or start a run. The run history shows each run's status, version, start and end times, and any link to its source run when it is a rerun. Run changes refresh both the list and any expanded history. References: web/…/Workflows.vue• L29-183, web/…/Workflows.vue• L294-377, web/…/Workflows.vue• L424-459, web/…/WorkflowRuns.vue• L1-48, web/…/WorkflowRuns.vue• L95-152

Workflow editing

The workflow editor lets a user describe a connected automation flow. The graph can contain task, approval, delay, and note steps. Connections carry conditions and value mappings, while node settings carry step data. The editor validates the graph before saving a new revision and warns when a user leaves unsaved work. References: web/…/WorkflowEditor.vue• L17-177, web/…/WorkflowEditor.vue• L181-317, web/…/WorkflowEditor.vue• L384-500, web/…/WorkflowEditor.vue• L676-769, web/…/WorkflowEditor.vue• L835-867

Workflow graph

The workflow graph is the shared visual model for design and run inspection. Edit mode changes the graph. Run mode keeps it read-only and places each node's current state on the same flow so the user can follow progress. References: web/…/WorkflowGraph.vue• L1-106, web/…/WorkflowGraph.vue• L141-164, web/…/WorkflowGraph.vue• L246-288

Workflow launch

Workflow launch starts directly when the workflow has no run-time questions. If it has survey variables, the browser first opens a run dialog with defaults and validates the answers. A successful request opens the new run in a side panel over the current page; a failed request keeps the dialog open so the user can correct the input. References: web/…/WorkflowRunDialog.vue• L1-56, web/…/WorkflowRunDialog.vue• L64-138, web/…/Workflows.vue• L424-459, web/…/WorkflowView.vue• L177-217

Workflow run inspection

The run view is the operational view for one workflow execution. It shows the graph revision used by the run, run status, version, supplied variables, node timing, task links, delays, and approval state. Active and approval-blocked runs refresh while they proceed, so the graph remains a live view of progress. Users with the matching permissions can stop a run, resolve pending approvals, or rerun a finished run either in full or from failed nodes. References: web/…/WorkflowRunView.vue• L69-153, web/…/WorkflowRunView.vue• L157-232, web/…/WorkflowRunView.vue• L391-483, web/…/WorkflowRunView.vue• L485-505, web/…/WorkflowRunView.vue• L549-652

Workflow run panel

The run panel lets a user inspect a run without leaving the list or workflow page. It slides from the right without a scrim and can swap to another run when the user selects a different link. A direct run URL uses the same run view as the full page. References: web/…/WorkflowRunPanel.vue• L1-35, web/…/WorkflowRunPanel.vue• L85-110, web/…/WorkflowRun.vue• L1-35

Execution results

Execution views connect a high-level run to the work performed on hosts. A task log remains the detailed record, while host and task summaries help a user find the affected target quickly.

Host results

Host views show the last known host state and link a host to its task history. A project host list supports search, status filters, template filters, paging, and decommissioning of global hosts. A host detail view shows its run counts and task list. References: web/…/Hosts.vue• L48-253, web/…/Hosts.vue• L397-494, web/…/HostView.vue• L23-104, web/…/HostTaskList.vue• L1-87

Task summaries

Ansible task summaries group results by host and show failed, unreachable, changed, skipped, rescued, ignored, and successful work. Failed rows can expand to show the error detail. Registered hosts link back to the project host view, while local execution hosts remain plain text. References: web/…/AnsibleStageView.vue• L29-214, web/…/AnsibleStageView.vue• L370-409, web/…/HostStatus.vue• L1-27

Contextual help

Contextual help explains a page or dialog beside the fields it describes. A help document is selected by a stable key, and its sections follow the related form field through focus and pointer use. The panel can mark fields that are hidden by the current tab or feature choice, which lets the same help document serve several form states. References: web/…/HelpButton.vue• L1-31, web/…/HelpDocsHost.js• L1-17, web/…/HelpDocsHost.js• L174-209, web/…/HelpPanel.vue• L40-68, web/…/HelpPage.vue• L1-31

Permission boundaries

Permission checks shape the actions shown in project views. Read access controls whether supporting project choices can be loaded. Resource-management access controls changes to templates and supporting resources. Run access controls task and workflow launch, while workflow approval access controls approval resolution. Product feature flags can also hide views or show an upgrade state. References: web/…/Templates.vue• L423-429, web/…/TaskForm.vue• L237-242, web/…/Workflows.vue• L39-46, web/…/WorkflowView.vue• L144-155, web/…/WorkflowRunView.vue• L413-429, web/…/Inventory.vue• L95-128, web/…/InventoryHosts.vue• L219-226, web/…/ScheduleForm.vue• L740-750

Change checklist

When these files or sections are changed, remember to consider these:

  • Keep project route redirects aligned with the list, detail, editor, task, workflow run, history, state, and permission views.
  • Keep template survey definitions aligned with task launch fields and workflow run fields. Workflow surveys must not expose secret answers.
  • Keep resource selectors aligned with read permissions, resource types, and the API data used by template and task forms.
  • Keep inventory kind labels and types aligned so Ansible inventories, workspace resources, and MCP inventories open the correct form or detail path.
  • Keep MCP server token handling aligned with the rule that stored tokens are not displayed and that removal or replacement is explicit.
  • Keep schedule target fields mutually exclusive, and keep one-time times and recurring patterns aligned with the configured schedule time zone.
  • Keep managed-inventory tabs, host pagination, and variable-save events aligned so a child view cannot show stale inventory state.
  • Keep workflow run links aligned between the list, expanded history, side panel, and direct run page.
  • Keep rerun source IDs and modes aligned between run detail actions and run history labels.
  • Keep graph node and edge data aligned with editor validation, saved revisions, and read-only run rendering.
  • Keep view statistics aligned with task status updates and the template view tabs.

Important failure modes

TriggerConsequenceGuard
A template or workflow route keeps an old project or resource identifierThe browser opens the wrong context or cannot load the resourceRoute redirects build every child path from the current project, resource, and run identifiers.
Required survey values are missing at launchThe task or workflow is not submittedLaunch forms validate required survey values before the request.
A user cannot read project resourcesSelectors such as repository, inventory, and environment have no usable choicesForms receive read permission state and fall back to the resource's stored values where allowed.
JSON or YAML extra variables are not an object or cannot be parsedThe form keeps the old edit mode and blocks a safe saveEnvironment editing checks the root shape and reports the conversion error.
A managed-inventory route points to a non-managed inventoryThe detail page shows an unavailable inventory state instead of host and variable viewsThe inventory detail view checks the resource type before showing its child views.
An AI agent app is inactive when an MCP inventory is neededThe inventory creation menu does not offer the MCP inventory kindThe inventory page derives the available kind from active agent applications.
An MCP server has an invalid URL, missing name, or missing required token stateThe inventory cannot be saved with a usable server entryThe MCP inventory form validates server fields and keeps stored tokens masked.
A schedule target is saved with both a template and a workflowThe schedule does not describe one clear resource to startThe schedule form clears the other target and its template-only parameters whenever the target changes and before save.
A recurring schedule uses an invalid pattern or a one-time schedule has no valid timeThe schedule cannot show or save a reliable next runThe form validates recurring patterns and parses one-time input in the configured schedule time zone.
Inventory variables are changed and the user leaves before savingThe edited inventory data is lostThe variable view tracks the saved value and asks for confirmation on route or browser exit.
A workflow run reaches approval without an approval permissionThe run stays in the approval stateApproval controls appear only when the run view grants approval resolution.
A workflow run is rerun from a stale status or source linkThe user may open the wrong run history or attempt an unavailable actionRun actions use the current run status and route new runs through the same run location used by history.
A run or task request fails after the dialog opensThe user loses no input and can retryThe dialog stays open on failure and reports the request error.

Key files

FileWhy to read it
web/…/index.jsDefines the project, template, inventory, workflow, and run URL flow.
web/…/Templates.vueShows template views, recent task history, view counts, and task launch entry points.
web/…/TemplateForm.vueShows how a template becomes a runnable project resource.
web/…/TaskForm.vueShows how template defaults and task-time choices become one task request.
web/…/Inventory.vueShows the project inventory entry point, inventory kinds, workspace attachment, and managed-inventory navigation.
web/…/InventoryForm.vueShows the configuration choices for an Ansible inventory.
web/…/McpInventoryForm.vueShows how an MCP inventory groups server endpoints and protected tokens.
web/…/InventoryView.vueShows the managed-inventory boundary and the hosts and variables tabs.
web/…/InventoryHosts.vueShows host search, paging, variable inspection, and resource actions.
web/…/InventoryVariables.vueShows YAML variable editing, unsaved-change protection, and parent-view updates.
web/…/EnvironmentForm.vueShows variable, secret, and secret-storage input used by automation.
web/…/Schedule.vueShows schedule rows, target links, one-time or recurring entry points, and activation.
web/…/ScheduleForm.vueShows schedule targets, time-zone-aware timing, recurring patterns, and template parameters.
web/…/Workflows.vueShows the workflow collection, recent runs, and launch entry point.
web/…/WorkflowRuns.vueShows workflow run history and rerun relationships.
web/…/WorkflowEditor.vueShows graph design, validation, unsaved changes, and save lifecycle.
web/…/WorkflowRunDialog.vueShows how workflow survey answers become run input.
web/…/WorkflowRunView.vueShows run status, graph progress, polling, stopping, approvals, and reruns.
web/…/WorkflowRunPanel.vueShows how run inspection stays beside the source page.
web/…/AnsibleStageView.vueShows how task results become host and error summaries.