Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

databricks-serverless-migration-api

БесплатноБез исполняемых скриптовНе проверен

Migrate Databricks jobs to serverless through the Compute Migrations API and CLI, then track, review, and approve each migration. Use for automated job…

databricksот databricks★ 421 звезда на GitHub

Об этом скилле

Serverless Migration API

FIRST: Use the parent databricks-core skill for CLI installation, authentication, and profile selection.

Use the Compute Migrations API through the Databricks CLI to migrate a job to serverless. The service analyzes the job, backs it up, builds a serverless working copy, and optionally runs it in the background. Your part is to track the migration, review the working copy, present the changes to the user, and carry out their decision. Applying the changes to the original job requires the user's explicit approval.

When to Use This Skill

Use it when the user asks you to:

  • migrate one job or many jobs to serverless,
  • write a script that starts and tracks migrations,
  • check on, approve, reject, or cancel migrations already in progress, or
  • find the backup a migration took of a job.

Use databricks-serverless-migration for direct code edits, notebooks, pipelines, JAR tasks, or a job this service cannot migrate. For job definitions maintained in source control, read Jobs managed from source.

See the migration guide for supported workloads and limits. A successful create starts the migration; it does not establish that the workload is compatible. Incompatibilities can be discovered during planning or working-copy creation.

Migrate One Job

  1. Check the prerequisites once per workspace.
  2. Confirm the job and whether to set auto_approve or run_validation (see Settings chosen at creation).
  3. Start the migration with create, and record its migration ID and request_id.
  4. Track progress until it reaches a review gate or a terminal state.
  5. At each review gate, review the working copy, present your findings to the user, and approve or reject as the user decides.
  6. After MIGRATION_COMPLETE, verify the original job and report the result and the backup folder.

For a list of jobs, use Bulk migration to repeat this workflow and track each job's decisions.

Prerequisites

  1. CLI v1.24.0 or newer: check databricks --version and databricks compute-migrations --help. The command group and the verbs below must be available. If a command is missing, upgrade using databricks-core.
  2. Compute Agent preview enabled in the workspace. A workspace admin enables it under Previews. Without it, every call fails with PERMISSION_DENIED ("Migration APIs are not enabled for this workspace").
  3. CAN_MANAGE on each job you migrate.

The CLI help is generated from the API and is authoritative for command names, arguments, and flags. Run databricks compute-migrations <command> --help before first use of each command. Pass request bodies with --json and read responses with -o json.

Lifecycle

Prepare working copy
  → TRANSLATION_READY (skipped when auto_approve=true)
  → Optional validation run (run_validation=true)
  → MIGRATION_REVIEW (execution approval required)
  → Apply changes → MIGRATION_COMPLETE
  1. Planning. The service reads the job, its notebooks and files, and its cluster configuration, and works out the serverless changes: compute, dependencies, Spark configs, and code changes. The working copy is the first thing you review.
  2. Backup and working copy. The service saves a backup of the job and its workspace files (see Backups), then creates a working copy: a new job named [Serverless Migration - <timestamp>] <job name>, tagged serverless_migration_source_job_id=<original job id>, running copies of the job's notebooks and files. The original job is not modified until you approve execution.
  3. Gate 1, TRANSLATION_READY. Skipped when auto_approve=true. Otherwise, review the working copy. Approve to continue, or reject with a reason to request changes.
  4. Validation run (only with run_validation). Databricks runs the working-copy job once. The outcome is recorded in validation_report. A failed run does not stop the migration: it moves to MIGRATION_REVIEW with passed: false.
  5. Gate 2, MIGRATION_REVIEW. Final approval to update the original job. Approving execution starts applying the working copy's settings and file contents to the original job, keeping its job ID, schedule, and permissions.
  6. Complete. Verify the original job (see After completion).

Use either rejection command to request changes, with a specific rejection_reason. The same migration returns to planning and revises its working copy. Read migration_report again and review the current copy before approving it. Revisions are limited, and repeated rejections eventually fail the migration. When the user wants to stop the migration, use cancel-migration (see Cancellation).

Settings Chos

Полный SKILL.md на GitHub

Установить databricks-serverless-migration-api в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

agents/openai.yamlassets/databricks.pngassets/databricks.svgreferences/backups-and-rollback.mdreferences/bulk-migration.md

FAQ

Что делает скилл databricks-serverless-migration-api?

Migrate Databricks jobs to serverless through the Compute Migrations API and CLI, then track, review, and approve each migration. Use for automated job migrations managed by this service, scripts that start and track migrations, requests to inspect, revise, approve, or cancel migrations, and finding migration backups. For direct code or notebook edits and compatibility analysis, use databricks-serverless-migration.

Как установить скилл databricks-serverless-migration-api?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл databricks-serverless-migration-api запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить databricks-serverless-migration-api с