メインコンテンツへスキップ

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.

オートメーション は、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:
  • When a run fails (event), notify a Slack channel (action).
  • When the production alias is added to an artifact (event), call a webhook to trigger deployment (action).
Events and available conditions differ for automations scoped to a project or a registry. See Automation events and scopes. 例: run が失敗した (イベント) 場合に、必要に応じて run 名フィルター (条件) を指定し、Slack 通知 (アクション) を送信します。別の例: alias 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 (stagingproduction など) が追加されたときに、webhook をトリガーしてテストを実行したり、デプロイしたりします。
  • project の artifact ワークフロー: 新しい artifact バージョンが作成されたとき、または project に alias が追加されたときに、後続のジョブを実行したり、Slack に投稿したりします。
イベントとスコープの詳細については、Automation events and scopes を参照してください。

オートメーションアクション

イベントによってオートメーションがトリガーされると、次のいずれかのアクションを実行できます。
  • 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.
実装の詳細については、Slack オートメーションの作成 および webhook オートメーションの作成 を参照してください。

オートメーションの動作

オートメーションを作成するには、次の手順を行います。
  1. 必要に応じて、アクセストークン、パスワード、機密性の高い設定の詳細など、オートメーションで必要になる機密文字列のためにシークレットを設定します。シークレットは Team Settings で定義します。シークレットは、主に webhook オートメーションで、認証情報やトークンを平文で公開したり webhook のペイロードにハードコードしたりすることなく、webhook の外部サービスに安全に渡すために使用されます。
  2. チームレベルの webhook または Slack インテグレーションを設定して、W&B が Slack に投稿したり、ユーザーに代わって webhook を実行したりできるようにします。1 つのオートメーションアクション (webhook または Slack 通知) を複数のオートメーションで使用できます。これらのアクションは Team Settings で定義します。
  3. project または レジストリ で、オートメーションを作成します。
    1. 監視するイベントを定義します。たとえば、新しい artifact バージョンが追加されたときです。
    2. イベント発生時に実行するアクション (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 メトリクス Automationsrun メトリクスの z-score 変化 Automations は、現在 W&B Multi-tenant Cloud でのみサポートされています。

次のステップ