Automation events and scopes
3 minute read
An automation can run when a specific event occurs at a given scope, either a registry or a project. This page lists the events that can trigger an automation at each scope.
Registry
This section describes the scopes and events for an automation in a Registry.
Scopes
You create a Registry automation in these scopes:
- A Registry and all of its collections (the default).
- A single collection.
Events
These events can trigger a Registry automation:
- Linking a new artifact to a collection: Test and validate new models or datasets when they are registered.
- Adding a new alias to a version of an artifact: Trigger a special step of your workflow when a new artifact version has a specific alias applied. For example, deploy a model when it has the
deploy
alias applied.
Project
This section describes the scopes and events for an automation in a project.
Scopes
You can create a project automation in these scopes:
- The project and all of its collections (the default).
- All collections that match the filter you supply.
Artifact events
This section describes the events related to an artifact that can trigger an automation.
- Linking a new artifact: Test and validate new models, datasets or dataset automatically.
- Creating a new version of an artifact: Apply recurring actions to each version of an artifact. For example, start a training job when a new dataset artifact version is created.
- Adding a new alias to a version of an artifact: Trigger a special step of your workflow when a new artifact version in a project or collection has a specific label or alias applied. For example, run a series of downstream processing steps when an artifact has the
test-set-quality-check
alias applied.
Run metrics events
This section describes the run metrics events that can trigger an automation.
- Run metrics threshold met: Trigger a workflow when, for a given metric, a run or the average of a number of runs meets the threshold you specify for a given metric.
- Run metrics change threshold met: Trigger a workflow when, for a given metric, a run or the average of a number of runs increases or decreases by the threshold you specify for a given metric.
To set up the metric for a run metrics event, you specify:
- An optional run name filter. Only runs matching this filter can trigger the automation.
- The metric.
- The threshold for evaluation.
- The comparison to make. Choices differ for each type of event. Refer to Run metrics comparison choices.
Run metrics comparison choices
When configuring an automation for a run metric event, you can configure how to compare the run metric value with the threshold you specify. Your choices depend on the event type.
For Run metrics threshold met events, you can configure:
- The number of logged values to average across (defaults to 5).
- How to compare the values with the threshold:
- Above
- Above or equal to
- Below
- Below or equal to
- Not equal to
- Equal to
For Run metrics change threshold met, you can configure:
- The current window of logged values to average across (defaults to 10).
- The prior window of logged values to average across (defaults to 50).
- Whether to evaluate the values as relative or absolute (defaults to Relative).
- How to compare the values with the threshold:
- Increases by at least
- Decreases by at least
- Increases or decreases by at least
Next steps
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.