オートメーション は、projects と レジストリ の両方で利用できます。オートメーションを作成する場所、使用できるイベント、スコープの仕組みは、それぞれ異なります。スコープごとのイベントタイプについては、Automation events and scopes を参照してください。 W&B Automations follow a simple pattern: when an event occurs and optional conditions are met, an action runs automatically. For example:Documentation Index
Fetch the complete documentation index at: https://docs.wandb.ai/llms.txt
Use this file to discover all available pages before exploring further.
- When a run fails (event), notify a Slack channel (action).
- When the
productionalias is added to an artifact (event), call a webhook to trigger deployment (action).
production が追加された (イベント) 場合に、webhook (アクション) を実行します。
オートメーションを作成できる場所
- In a project: Open the project, then click the Automations tab in the project sidebar.
- In a registry: Open the registry, then click the Automations tab.
使用例
- run の監視とアラート: run が失敗したときや、メトリクスがしきい値を超えたとき (たとえば、損失が NaN になる、または精度が低下する場合) にチームに通知します。
- Registry CI/CD: 新しいモデル バージョンがリンクされたとき、または alias (
stagingやproductionなど) が追加されたときに、webhook をトリガーしてテストを実行したり、デプロイしたりします。 - project の artifact ワークフロー: 新しい artifact バージョンが作成されたとき、または project に alias が追加されたときに、後続のジョブを実行したり、Slack に投稿したりします。
オートメーションアクション
- Slack notification: Send a message to a Slack channel with details about the triggering event. The message summarizes the event, with a link to view more details in W&B.
- Webhook: Call a webhook URL with a JSON payload containing information about the triggering event. This enables integration with external systems like CI/CD pipelines, model deployment services, or custom workflows.
オートメーションの動作
- 必要に応じて、アクセストークン、パスワード、機密性の高い設定の詳細など、オートメーションで必要になる機密文字列のためにシークレットを設定します。シークレットは Team Settings で定義します。シークレットは、主に webhook オートメーションで、認証情報やトークンを平文で公開したり webhook のペイロードにハードコードしたりすることなく、webhook の外部サービスに安全に渡すために使用されます。
- チームレベルの webhook または Slack インテグレーションを設定して、W&B が Slack に投稿したり、ユーザーに代わって webhook を実行したりできるようにします。1 つのオートメーションアクション (webhook または Slack 通知) を複数のオートメーションで使用できます。これらのアクションは Team Settings で定義します。
- project または レジストリ で、オートメーションを作成します。
- 監視するイベントを定義します。たとえば、新しい artifact バージョンが追加されたときです。
- イベント発生時に実行するアクション (Slack チャンネルへの投稿や webhook の実行) を定義します。webhook の場合は、必要に応じて、アクセストークンに使用するシークレットや、ペイロードとともに送信するシークレットを指定します。
推奨事項
- Start small: Begin with one or two automations for high-value events (for example, run failures or production alias changes). Validate that they work as expected before adding more.
- Test before production: Create automations in a test project or with a test webhook or Slack channel first. Manually trigger the event and confirm the action runs and the payload or message looks correct.
- Avoid alert fatigue: Use run filters, metric thresholds, or alias patterns to limit how often an automation fires. Route different severities to different channels if needed.
制限事項
次のステップ
- オートメーションのチュートリアル: run の失敗を通知する project オートメーションと、alias が追加されたときに webhook を実行する Registry オートメーションの作成方法を案内します。このチュートリアルでは W&B App を使用します。
- オートメーションを作成。
- オートメーションのイベントとスコープ。
- シークレットを作成。
オートメーションに関する関連チュートリアルをお探しですか?