Skip to main content

Pipeline Revisions and Triggers in MA Studio

This guide explains how pipeline revisions work and how to find, run and manage them, and your triggers, in MA Studio. It covers what the Revisions view and the revision selector show, how a run is pinned to a revision, and how to read, kill and rerun a trigger.

What You'll Learn​

  • What a pipeline revision is and when Michelangelo AI creates one
  • Which revision counts as "latest", and why a feature-branch apply doesn't change it
  • How to browse revisions, switch between them and start runs against a specific one
  • How MA Studio labels trigger states, and what Kill and Rerun do
  • Where to find a trigger's logs, error message and the pipeline runs it created

Prerequisites​

Pipeline Revisions​

What a Revision Is​

A pipeline revision is an immutable snapshot of a pipeline. When revisioning is enabled, the controller takes a snapshot each time a pipeline reaches READY. Applying the same commit again doesn't create a duplicate.

RuleWhat it means for you
A commit is requiredA pipeline with no commit information gets no revision.
NamingA revision is named pipeline-<lowercased pipeline name>-<first 12 characters of the git ref>. MA Studio shows it as Revision <12-character ref>.
OwnershipA pipeline owns its revisions. With metadata storage off, deleting the pipeline deletes them too, as described in Pipeline Cascade Delete. With metadata storage on, as in the sandbox, a ready revision has already moved out of etcd to MySQL, so the delete doesn't reach it and the revision outlives the pipeline.
ImmutableOnce a revision is ready, its content is fixed. Re-applying the same commit with a different spec doesn't update it, and the pipeline controller logs an error. Apply the change as a new commit.

Which Revision Is "Latest"​

Only commits on a branch named main or master become the pipeline's latest revision. If you apply a pipeline from any other branch, Michelangelo AI still creates a revision for it, but "latest" doesn't move.

If a pipeline has no revision from main or master yet, MA Studio shows its most recently updated revision on the detail page. That revision isn't tagged Latest.

Runs Pin to a Revision​

When a pipeline run is created:

  1. If the run names a revision, that revision must exist. Otherwise the create is rejected.
  2. If it doesn't name one, the run pins to the pipeline's latest revision.
  3. If the pipeline has a latest revision but that revision no longer exists, the run uses the live pipeline instead.

Runs started from MA Studio send the revision shown in the dialog, as described below. If the pipeline has no revisions at all, the dialog sends none and the run uses the live pipeline.

Revisioning and metadata storage must be enabled on your platform

Revisioning is controlled by the Helm value controllermgr.pipeline.revisioningEnabled. It is off by default, because revisions have no retention policy yet (#2139). The revision views in MA Studio also need metadata storage (apiserver.metadataStorage.enable and controllermgr.metadataStorage.enable, both off by default). They filter and sort revisions with list options that the API ignores without it. The local sandbox turns on both settings. If you're not sure whether your platform has them on, ask your operator. When revisioning is off, the Revisions view stays empty and, reading the UI source, the pipeline detail page can't find a revision to show and displays "Entity not found" with the message "No revision found."

Browse Revisions in MA Studio​

On the Pipelines list, use the Pipelines | Revisions toggle to switch between the pipelines and their revisions.

The Revisions view has these columns:

ColumnShows
NameThe pipeline name, with Revision <ref> underneath. Click it to open the pipeline detail page on that revision.
Last updatedWhen the revision was last updated
TypeThe pipeline type
OwnerThe pipeline owner
BranchThe branch the revision's commit was applied from
StateThe pipeline state recorded in the snapshot

Each row has the same actions as the Pipelines list: Run, Run trigger and Delete. Delete is disabled here, with the tooltip "Return to the Pipelines list view to delete a pipeline". The confirmation for deleting a pipeline from the Pipelines list says it also deletes all of its revisions. That holds only with metadata storage off. With it on, ready revisions stay, as described under Ownership above.

Switch Revisions on the Pipeline Page​

The pipeline detail page has a revision selector next to the page title.

  • With no revision in the URL, the page shows the latest revision. The selector button and the matching list row carry a green Latest tag.
  • Open the selector to see every revision with its Revision, Branch and Last updated values. Pick one and the page reloads on it.
  • The selected revision is stored in the URL as ?revisionId=<git ref>, so you can share a link to a specific revision.

The detail page has two tabs. Runs lists the pipeline runs pinned to the revision you're viewing, and Triggers lists the trigger runs for the pipeline.

Run a Specific Revision​

Run and Run trigger both pin the new run to a revision:

  • On the pipeline detail page, or from a row in the Revisions view, they use that exact revision. With no ?revisionId= in the URL, the detail page shows the latest revision.
  • From a row in the Pipelines list, they use the pipeline's latest revision. If the pipeline has none from main or master, they use its most recently updated revision.

The dialogs show the revision as a read-only Revision ID field containing the revision resource name, for example pipeline-my-training-0123456789ab. While the lookup is loading or has failed, the Run button is disabled so a run is never created without its pin. The tooltip says "Loading the pipeline's latest revision…" or "Could not load the pipeline's latest revision."

Triggers in MA Studio​

Where to Find Triggers​

In each phase that lists pipelines and has triggers, the tabs read Pipelines, Triggers, then Runs. The Runs tab lists pipeline runs, and Triggers lists trigger runs.

Start a Trigger From a Pipeline​

Choose Run trigger on a pipeline or revision. It's disabled with the tooltip "No triggers defined for this pipeline" when the pipeline's manifest has no triggers. The Run trigger dialog has these fields:

FieldNotes
PipelineRead-only
Revision IDRead-only, see Run a Specific Revision
TriggerOne of the triggers in the manifest, shown with its schedule
Which environment do you want to use?Development (default) or Production. The choice is recorded on the trigger run as its environment. Production isn't restricted by the pipeline's source branch yet (#2155).
Automatically switch to the latest revision once changes are applied? (Coming soon)Disabled. See below.
Is this a backfill run?Turn it on to run a time window, instead of the trigger's own schedule

For a backfill run you also set Execution start date & time, Execution end date & time, Parameter IDs (selecting none runs every parameter) and Max concurrency (overrides the trigger's default for this run only). Neither date can be in the future, and the start must come before the end.

Auto-switch isn't active yet

The auto-switch option is shown but disabled. As described in Set Up Triggers, the runtime behavior behind it isn't active, so keep pinning your triggers to a revision.

Read the Trigger List​

The Triggers list has these columns, left to right:

ColumnShows
NameThe trigger run. Click it to open the detail page.
PipelineThe pipeline name, with the pinned revision underneath
Creation timeWhen the trigger run was created
CronThe cron expression, for cron triggers
Interval secondsThe interval, for interval triggers. The API doesn't accept interval triggers yet, so this is empty today. See Set Up Triggers.
OwnerWho started the trigger run
StateSee the table below
EnvironmentDevelopment or Production, as recorded on the trigger run
Auto switch to latest mainWhether the trigger was created with auto-switch on

Trigger States in MA Studio​

MA Studio's labels differ from the CLI and API state names. For what each state means, see Trigger States.

API and CLI stateMA Studio labelColor
INVALIDQueuedGray
RUNNINGRunningBlue
PAUSEDPausedYellow
PENDING_KILLPending KillDefault
KILLEDKilledGray
FAILEDFailedRed
SUCCEEDEDSucceededGreen

Kill and Rerun a Trigger​

ActionWhen it's enabledWhat it does
KillOnly when the trigger is running or paused. Otherwise the tooltip says "Only running or paused trigger runs can be killed".Asks you to confirm, then moves the trigger to Pending Kill and then Killed. It stays Pending Kill until the pipeline runs it started have stopped. Pipeline runs it started that are still pending or running are killed, not deleted. See kill vs delete in Set Up Triggers.
RerunOnly when the trigger has terminated (failed, killed or succeeded). Otherwise the tooltip says "Only terminated trigger runs (failed, killed, or succeeded) can be rerun".Asks you to confirm, then creates a new trigger run with the same pipeline, revision, schedule and parameters. The new run doesn't copy the original's Environment. It gets the platform default. A toast with See new trigger links to it. The original trigger run stays as it was.

Pause and Resume aren't available in MA Studio, and the ma trigger_run commands have no pause or resume subcommand. To pause or resume a cron trigger, set action: TRIGGER_RUN_ACTION_PAUSE or action: TRIGGER_RUN_ACTION_RESUME in the trigger run's spec and apply it with ma trigger_run apply. Backfill triggers can't be paused or resumed.

The Trigger Detail Page​

The header shows the pipeline and revision, creation time, schedule (Cron or Interval seconds), Batch size, Wait minutes, Max concurrency, Start time, End time, Owner and State. Fields that don't apply to the trigger are hidden.

TabShows
InformationUseful links, with a Trigger run logs link to the workflow engine, when the platform has controllermgr.workflowClient.executionUrlFormat set (the sandbox does). Message, with the trigger's error message, only when it has one. Parameters, with the trigger's parameter map, only when it has parameters.
Triggered RunsThe pipeline runs this trigger created, with their state, parameters, execution time and environment

Troubleshooting​

SymptomLikely cause
The Revisions view is emptyRevisioning isn't enabled on your platform, or the pipeline has no commit information. Ask your operator, and see What a Revision Is.
A new revision isn't tagged LatestIt was applied from a branch other than main or master. See Which Revision Is "Latest".
Run trigger is disabledThe pipeline's manifest defines no triggers. See Set Up Triggers.
Kill is disabledThe trigger isn't running or paused.
Rerun is disabledThe trigger hasn't terminated yet.

What's Next​