자동화는 projects와 registries 둘 다에서 지원됩니다. 자동화를 생성하는 위치, 사용할 수 있는 이벤트, 그리고 범위가 작동하는 방식은 각각 다릅니다. 범위별 이벤트 유형은 자동화 이벤트 및 범위를 참조하세요. 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://wb-21fd5541-docs-2658.mintlify.app/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 추가(이벤트) 후 웹훅(액션).
Automations를 생성할 수 있는 위치
- 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이 실패하거나 메트릭이 임곗값을 넘을 때(예: loss가 NaN이 되거나 정확도가 떨어질 때) 팀에 알림을 보냅니다.
- 레지스트리 CI/CD: 새 모델 버전이 연결되거나 별칭(예:
staging또는production)이 추가되면, 테스트를 실행하거나 배포하도록 웹훅을 트리거합니다. - 프로젝트 아티팩트 워크플로: 새 아티팩트 버전이 생성되거나 프로젝트에 별칭이 추가되면, 후속 작업을 실행하거나 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.
Automations의 작동 방식
- 필요한 경우 액세스 토큰, 비밀번호, 민감한 설정 세부 정보 등 자동화에 필요한 민감한 문자열에 대해 시크릿를 설정합니다. 시크릿은 Team Settings에 정의되어 있습니다. 시크릿은 웹훅 Automations에서 자격 증명이나 토큰을 평문으로 노출하거나 웹훅 페이로드에 하드코딩하지 않고 웹훅의 외부 서비스로 안전하게 전달하는 데 가장 자주 사용됩니다.
- 팀 수준의 웹훅 또는 Slack 인테그레이션을 설정하여 W&B가 사용자를 대신해 Slack에 게시하거나 웹훅을 실행할 수 있도록 승인합니다. 단일 자동화 작업(웹훅 또는 Slack 알림)은 여러 Automations에서 사용할 수 있습니다. 이러한 작업은 Team Settings에 정의되어 있습니다.
- 프로젝트 또는 레지스트리에서 자동화를 생성합니다.
- 새 아티팩트 버전이 추가될 때와 같이 모니터링할 이벤트를 정의합니다.
- 이벤트가 발생할 때 수행할 작업(Slack 채널에 게시하거나 웹훅 실행)을 정의합니다. 웹훅의 경우 필요하다면 액세스 토큰에 사용할 시크릿 및/또는 페이로드와 함께 전송할 시크릿을 지정합니다.
권장 사항
- 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.
제한 사항
다음 단계
- Automations 튜토리얼: run 실패 시 알림을 보내는 프로젝트 자동화와 별칭이 추가될 때 웹훅을 실행하는 레지스트리 자동화를 만드는 방법을 안내합니다. 이 튜토리얼에서는 W&B App을 사용합니다.
- 자동화를 생성.
- 자동화 이벤트 및 범위.
- 시크릿 생성.
Automations와 함께 볼 수 있는 튜토리얼을 찾고 계신가요?