[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6F681Y00SCDG9QSG9X2Y198":3,"skill-same:01M6F681Y00SCDG9QSG9X2Y198":81},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":49,"linkOnly":50,"markdownContent":51,"markdownBody":52,"frontMatter":53,"refName":58,"commitSha":59,"skillDirectory":60,"forksCount":61,"repositoryHtmlUrl":62,"repositoryHomepageUrl":6,"ownerHtmlUrl":63,"ownerBlogUrl":64,"ownerDescription":65,"updatedAt":66,"install":67,"resources":80},"01M6F681Y00SCDG9QSG9X2Y198","databricks-rate-limits",null,"Implement Databricks API rate limiting, backoff, and idempotency patterns.\nUse when handling rate limit errors, implementing retry logic,\nor optimizing API request throughput for Databricks.\nTrigger with phrases like \"databricks rate limit\", \"databricks throttling\",\n\"databricks 429\", \"databricks retry\", \"databricks backoff\".","Dicklesworthstone\u002Fpi_agent_rust","Dicklesworthstone","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F35050222?v=4","01M6CG26AR942CSVMN1M5E3DSE","Jeff Emanuel","01M6CG26EPP71PSHW1VDS71121",1992,"MIT","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Fplugins-community\u002Fplugins\u002Fsaas-packs\u002Fdatabricks-pack\u002Fskills\u002Fdatabricks-rate-limits\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48],"databricks","limits","rate","databricks rate limits","api request","implement","when","request","rate limit","api rate","implementing","limit","errors","429","backoff","retry","with","throughput","trigger","io","rate limiting","logic","patterns","api rate limiting","use","edit","write","read","api","throttling","2026-11-10 10:12:30",false,"---\nname: databricks-rate-limits\ndescription: |\n  Implement Databricks API rate limiting, backoff, and idempotency patterns.\n  Use when handling rate limit errors, implementing retry logic,\n  or optimizing API request throughput for Databricks.\n  Trigger with phrases like \"databricks rate limit\", \"databricks throttling\",\n  \"databricks 429\", \"databricks retry\", \"databricks backoff\".\nallowed-tools: Read, Write, Edit\nversion: 1.0.0\nlicense: MIT\nauthor: Jeremy Longshore \u003Cjeremy@intentsolutions.io>\n---\n\n# Databricks Rate Limits\n\n## Overview\nHandle Databricks API rate limits gracefully with exponential backoff.\n\n## Prerequisites\n- Databricks SDK installed\n- Understanding of async\u002Fawait patterns\n- Access to Databricks workspace\n\n## Instructions\n\n### Step 1: Understand Rate Limit Tiers\n\n| API Category | Rate Limit | Notes |\n|--------------|------------|-------|\n| Workspace APIs | 30 req\u002Fs | Clusters, jobs, notebooks |\n| SQL Warehouse | 10 req\u002Fs | Statement execution |\n| Unity Catalog | 100 req\u002Fs | Tables, grants, lineage |\n| Jobs Runs | 1000 runs\u002Fhour | Per workspace |\n| Clusters | 20 creates\u002Fhour | Per workspace |\n\n### Step 2: Implement Exponential Backoff with Jitter\n```python\n# src\u002Fdatabricks\u002Frate_limit.py\nimport time\nimport random\nfrom typing import Callable, TypeVar\nfrom databricks.sdk.errors import (\n    DatabricksError,\n    TooManyRequests,\n    TemporarilyUnavailable,\n    ResourceConflict,\n)\n\nT = TypeVar(\"T\")\n\ndef with_exponential_backoff(\n    operation: Callable[[], T],\n    max_retries: int = 5,\n    base_delay: float = 1.0,\n    max_delay: float = 60.0,\n    jitter_factor: float = 0.5,\n) -> T:\n    \"\"\"\n    Execute operation with exponential backoff on rate limits.\n\n    Args:\n        operation: Callable to execute\n        max_retries: Maximum retry attempts\n        base_delay: Initial delay in seconds\n        max_delay: Maximum delay cap\n        jitter_factor: Random jitter factor (0-1)\n\n    Returns:\n        Result of operation\n\n    Raises:\n        Original exception after max retries\n    \"\"\"\n    retryable_errors = (TooManyRequests, TemporarilyUnavailable, ResourceConflict)\n\n    for attempt in range(max_retries + 1):\n        try:\n            return operation()\n        except retryable_errors as e:\n            if attempt == max_retries:\n                raise\n\n            # Calculate delay with exponential backoff\n            exponential_delay = base_delay * (2 ** attempt)\n            # Add jitter to prevent thundering herd\n            jitter = random.uniform(0, jitter_factor * exponential_delay)\n            delay = min(exponential_delay + jitter, max_delay)\n\n            # Check for Retry-After header\n            if hasattr(e, 'retry_after') and e.retry_after:\n                delay = max(delay, float(e.retry_after))\n\n            print(f\"Rate limited (attempt {attempt + 1}\u002F{max_retries}). \"\n                  f\"Retrying in {delay:.2f}s...\")\n            time.sleep(delay)\n\n        except DatabricksError as e:\n            # Don't retry client errors (4xx except 429)\n            if e.error_code and e.error_code.startswith(\"4\"):\n                raise\n            if attempt == max_retries:\n                raise\n            time.sleep(base_delay * (2 ** attempt))\n\n    raise RuntimeError(\"Unreachable\")\n```\n\n### Step 3: Implement Request Queue for Bulk Operations\n```python\n# src\u002Fdatabricks\u002Fqueue.py\nimport time\nfrom collections import deque\nfrom threading import Lock\nfrom typing import Callable, TypeVar\n\nT = TypeVar(\"T\")\n\nclass RateLimitedQueue:\n    \"\"\"Token bucket rate limiter for API calls.\"\"\"\n\n    def __init__(\n        self,\n        requests_per_second: float = 10.0,\n        burst_size: int = 20,\n    ):\n        self.rate = requests_per_second\n        self.burst_size = burst_size\n        self.tokens = burst_size\n        self.last_update = time.monotonic()\n        self.lock = Lock()\n\n    def _refill_tokens(self) -> None:\n        \"\"\"Refill tokens based on elapsed time.\"\"\"\n        now = time.monotonic()\n        elapsed = now - self.last_update\n        self.tokens = min(\n            self.burst_size,\n            self.tokens + elapsed * self.rate\n        )\n        self.last_update = now\n\n    def acquire(self, tokens: int = 1) -> None:\n        \"\"\"Block until tokens are available.\"\"\"\n        with self.lock:\n            while True:\n                self._refill_tokens()\n                if self.tokens >= tokens:\n                    self.tokens -= tokens\n                    return\n                # Calculate wait time\n                wait_time = (tokens - self.tokens) \u002F self.rate\n                time.sleep(wait_time)\n\n    def execute(self, operation: Callable[[], T]) -> T:\n        \"\"\"Execute operation with rate limiting.\"\"\"\n        self.acquire()\n        return operation()\n\n\n# Global rate limiters by API category\nrate_limiters = {\n    \"workspace\": RateLimitedQueue(requests_per_second=25, burst_size=30),\n    \"sql\": RateLimitedQueue(requests_per_second=8, burst_size=10),\n    \"unity_catalog\": RateLimitedQueue(requests_per_second=80, burst_size=100),\n}\n\ndef rate_limited(category: str = \"workspace\"):\n    \"\"\"Decorator for rate-limited API calls.\"\"\"\n    def decorator(func):\n        def wrapper(*args, **kwargs):\n            limiter = rate_limiters.get(category, rate_limiters[\"workspace\"])\n            return limiter.execute(lambda: func(*args, **kwargs))\n        return wrapper\n    return decorator\n\n# Usage\n@rate_limited(\"workspace\")\ndef list_clusters(w):\n    return list(w.clusters.list())\n```\n\n### Step 4: Async Batch Processing\n```python\n# src\u002Fdatabricks\u002Fbatch.py\nimport asyncio\nfrom concurrent.futures import ThreadPoolExecutor\nfrom typing import List, Callable, TypeVar\nfrom databricks.sdk import WorkspaceClient\n\nT = TypeVar(\"T\")\n\nasync def batch_api_calls(\n    w: WorkspaceClient,\n    items: List[any],\n    operation: Callable[[WorkspaceClient, any], T],\n    concurrency: int = 5,\n    delay_between_batches: float = 1.0,\n) -> List[T]:\n    \"\"\"\n    Execute API calls in batches with rate limiting.\n\n    Args:\n        w: WorkspaceClient instance\n        items: Items to process\n        operation: Function to call for each item\n        concurrency: Max concurrent requests\n        delay_between_batches: Delay between batches\n\n    Returns:\n        List of results\n    \"\"\"\n    results = []\n    semaphore = asyncio.Semaphore(concurrency)\n    loop = asyncio.get_event_loop()\n\n    async def process_item(item):\n        async with semaphore:\n            # Run in thread pool since SDK is sync\n            with ThreadPoolExecutor() as executor:\n                result = await loop.run_in_executor(\n                    executor,\n                    lambda: with_exponential_backoff(\n                        lambda: operation(w, item)\n                    )\n                )\n            return result\n\n    # Process in batches\n    batch_size = concurrency * 2\n    for i in range(0, len(items), batch_size):\n        batch = items[i:i + batch_size]\n        batch_results = await asyncio.gather(\n            *[process_item(item) for item in batch],\n            return_exceptions=True\n        )\n        results.extend(batch_results)\n\n        # Delay between batches\n        if i + batch_size \u003C len(items):\n            await asyncio.sleep(delay_between_batches)\n\n    return results\n\n# Usage\nasync def update_all_job_tags(w: WorkspaceClient, job_ids: List[int], tags: dict):\n    def update_job(w, job_id):\n        return w.jobs.update(job_id=job_id, new_settings={\"tags\": tags})\n\n    results = await batch_api_calls(\n        w, job_ids, update_job,\n        concurrency=5,\n        delay_between_batches=1.0\n    )\n    return results\n```\n\n### Step 5: Idempotency for Job Submissions\n```python\n# src\u002Fdatabricks\u002Fidempotent.py\nimport hashlib\nimport json\nfrom typing import Optional\nfrom databricks.sdk import WorkspaceClient\nfrom databricks.sdk.service.jobs import RunNow, BaseRun\n\ndef generate_idempotency_token(\n    job_id: int,\n    params: dict,\n    timestamp_bucket: int = 3600,  # 1 hour buckets\n) -> str:\n    \"\"\"\n    Generate deterministic idempotency token for job run.\n\n    Uses timestamp buckets to allow retries within a time window\n    while preventing duplicate runs across windows.\n    \"\"\"\n    import time\n    bucket = int(time.time()) \u002F\u002F timestamp_bucket\n\n    data = json.dumps({\n        \"job_id\": job_id,\n        \"params\": params,\n        \"bucket\": bucket,\n    }, sort_keys=True)\n\n    return hashlib.sha256(data.encode()).hexdigest()[:32]\n\ndef idempotent_run_now(\n    w: WorkspaceClient,\n    job_id: int,\n    notebook_params: Optional[dict] = None,\n    idempotency_token: Optional[str] = None,\n) -> BaseRun:\n    \"\"\"\n    Submit job run with idempotency guarantee.\n\n    If a run with the same idempotency token exists,\n    returns the existing run instead of creating a new one.\n    \"\"\"\n    # Generate token if not provided\n    if not idempotency_token:\n        idempotency_token = generate_idempotency_token(\n            job_id,\n            notebook_params or {}\n        )\n\n    # Check for existing run with same token\n    recent_runs = list(w.jobs.list_runs(\n        job_id=job_id,\n        active_only=True,\n    ))\n\n    for run in recent_runs:\n        # Check if run was started with same token\n        # (Token would need to be stored in run tags in practice)\n        pass\n\n    # Submit new run\n    run = w.jobs.run_now(\n        job_id=job_id,\n        notebook_params=notebook_params,\n    )\n\n    return run\n```\n\n## Output\n- Reliable API calls with automatic retry\n- Rate-limited request queue\n- Async batch processing for bulk operations\n- Idempotent job submissions\n\n## Error Handling\n| Scenario | Behavior | Configuration |\n|----------|----------|---------------|\n| HTTP 429 | Exponential backoff | `max_retries=5` |\n| HTTP 503 | Retry with delay | `base_delay=1.0` |\n| Conflict (409) | Retry once | Check idempotency |\n| Timeout | Retry with increased timeout | `max_delay=60` |\n\n## Examples\n\n### Bulk Cluster Operations\n```python\nfrom databricks.sdk import WorkspaceClient\n\nw = WorkspaceClient()\n\n# Rate-limited listing\n@rate_limited(\"workspace\")\ndef safe_list_clusters():\n    return list(w.clusters.list())\n\n# Bulk updates with queue\ncluster_ids = [c.cluster_id for c in safe_list_clusters()]\n\nasync def update_all_clusters():\n    results = await batch_api_calls(\n        w,\n        cluster_ids,\n        lambda w, cid: w.clusters.edit(\n            cluster_id=cid,\n            autotermination_minutes=30\n        ),\n        concurrency=3\n    )\n    return results\n\n# Run async\nimport asyncio\nasyncio.run(update_all_clusters())\n```\n\n### Monitor Rate Limit Usage\n```python\nclass RateLimitMonitor:\n    \"\"\"Track rate limit usage across API calls.\"\"\"\n\n    def __init__(self):\n        self.calls = []\n        self.window_seconds = 60\n\n    def record_call(self, category: str):\n        import time\n        now = time.time()\n        self.calls.append({\"time\": now, \"category\": category})\n        # Cleanup old entries\n        self.calls = [c for c in self.calls if now - c[\"time\"] \u003C self.window_seconds]\n\n    def get_rate(self, category: str) -> float:\n        import time\n        now = time.time()\n        recent = [c for c in self.calls\n                  if c[\"category\"] == category and now - c[\"time\"] \u003C self.window_seconds]\n        return len(recent) \u002F self.window_seconds\n\n    def should_throttle(self, category: str, limit: float) -> bool:\n        return self.get_rate(category) > limit * 0.8  # 80% threshold\n```\n\n## Resources\n- [Databricks API Rate Limits](https:\u002F\u002Fdocs.databricks.com\u002Fdev-tools\u002Fapi\u002Flatest\u002Frate-limits.html)\n- [Best Practices for API Usage](https:\u002F\u002Fdocs.databricks.com\u002Fdev-tools\u002Fapi\u002Flatest\u002Fbest-practices.html)\n\n## Next Steps\nFor security configuration, see `databricks-security-basics`.\n","# Databricks Rate Limits\n\n## Overview\nHandle Databricks API rate limits gracefully with exponential backoff.\n\n## Prerequisites\n- Databricks SDK installed\n- Understanding of async\u002Fawait patterns\n- Access to Databricks workspace\n\n## Instructions\n\n### Step 1: Understand Rate Limit Tiers\n\n| API Category | Rate Limit | Notes |\n|--------------|------------|-------|\n| Workspace APIs | 30 req\u002Fs | Clusters, jobs, notebooks |\n| SQL Warehouse | 10 req\u002Fs | Statement execution |\n| Unity Catalog | 100 req\u002Fs | Tables, grants, lineage |\n| Jobs Runs | 1000 runs\u002Fhour | Per workspace |\n| Clusters | 20 creates\u002Fhour | Per workspace |\n\n### Step 2: Implement Exponential Backoff with Jitter\n```python\n# src\u002Fdatabricks\u002Frate_limit.py\nimport time\nimport random\nfrom typing import Callable, TypeVar\nfrom databricks.sdk.errors import (\n    DatabricksError,\n    TooManyRequests,\n    TemporarilyUnavailable,\n    ResourceConflict,\n)\n\nT = TypeVar(\"T\")\n\ndef with_exponential_backoff(\n    operation: Callable[[], T],\n    max_retries: int = 5,\n    base_delay: float = 1.0,\n    max_delay: float = 60.0,\n    jitter_factor: float = 0.5,\n) -> T:\n    \"\"\"\n    Execute operation with exponential backoff on rate limits.\n\n    Args:\n        operation: Callable to execute\n        max_retries: Maximum retry attempts\n        base_delay: Initial delay in seconds\n        max_delay: Maximum delay cap\n        jitter_factor: Random jitter factor (0-1)\n\n    Returns:\n        Result of operation\n\n    Raises:\n        Original exception after max retries\n    \"\"\"\n    retryable_errors = (TooManyRequests, TemporarilyUnavailable, ResourceConflict)\n\n    for attempt in range(max_retries + 1):\n        try:\n            return operation()\n        except retryable_errors as e:\n            if attempt == max_retries:\n                raise\n\n            # Calculate delay with exponential backoff\n            exponential_delay = base_delay * (2 ** attempt)\n            # Add jitter to prevent thundering herd\n            jitter = random.uniform(0, jitter_factor * exponential_delay)\n            delay = min(exponential_delay + jitter, max_delay)\n\n            # Check for Retry-After header\n            if hasattr(e, 'retry_after') and e.retry_after:\n                delay = max(delay, float(e.retry_after))\n\n            print(f\"Rate limited (attempt {attempt + 1}\u002F{max_retries}). \"\n                  f\"Retrying in {delay:.2f}s...\")\n            time.sleep(delay)\n\n        except DatabricksError as e:\n            # Don't retry client errors (4xx except 429)\n            if e.error_code and e.error_code.startswith(\"4\"):\n                raise\n            if attempt == max_retries:\n                raise\n            time.sleep(base_delay * (2 ** attempt))\n\n    raise RuntimeError(\"Unreachable\")\n```\n\n### Step 3: Implement Request Queue for Bulk Operations\n```python\n# src\u002Fdatabricks\u002Fqueue.py\nimport time\nfrom collections import deque\nfrom threading import Lock\nfrom typing import Callable, TypeVar\n\nT = TypeVar(\"T\")\n\nclass RateLimitedQueue:\n    \"\"\"Token bucket rate limiter for API calls.\"\"\"\n\n    def __init__(\n        self,\n        requests_per_second: float = 10.0,\n        burst_size: int = 20,\n    ):\n        self.rate = requests_per_second\n        self.burst_size = burst_size\n        self.tokens = burst_size\n        self.last_update = time.monotonic()\n        self.lock = Lock()\n\n    def _refill_tokens(self) -> None:\n        \"\"\"Refill tokens based on elapsed time.\"\"\"\n        now = time.monotonic()\n        elapsed = now - self.last_update\n        self.tokens = min(\n            self.burst_size,\n            self.tokens + elapsed * self.rate\n        )\n        self.last_update = now\n\n    def acquire(self, tokens: int = 1) -> None:\n        \"\"\"Block until tokens are available.\"\"\"\n        with self.lock:\n            while True:\n                self._refill_tokens()\n                if self.tokens >= tokens:\n                    self.tokens -= tokens\n                    return\n                # Calculate wait time\n                wait_time = (tokens - self.tokens) \u002F self.rate\n                time.sleep(wait_time)\n\n    def execute(self, operation: Callable[[], T]) -> T:\n        \"\"\"Execute operation with rate limiting.\"\"\"\n        self.acquire()\n        return operation()\n\n\n# Global rate limiters by API category\nrate_limiters = {\n    \"workspace\": RateLimitedQueue(requests_per_second=25, burst_size=30),\n    \"sql\": RateLimitedQueue(requests_per_second=8, burst_size=10),\n    \"unity_catalog\": RateLimitedQueue(requests_per_second=80, burst_size=100),\n}\n\ndef rate_limited(category: str = \"workspace\"):\n    \"\"\"Decorator for rate-limited API calls.\"\"\"\n    def decorator(func):\n        def wrapper(*args, **kwargs):\n            limiter = rate_limiters.get(category, rate_limiters[\"workspace\"])\n            return limiter.execute(lambda: func(*args, **kwargs))\n        return wrapper\n    return decorator\n\n# Usage\n@rate_limited(\"workspace\")\ndef list_clusters(w):\n    return list(w.clusters.list())\n```\n\n### Step 4: Async Batch Processing\n```python\n# src\u002Fdatabricks\u002Fbatch.py\nimport asyncio\nfrom concurrent.futures import ThreadPoolExecutor\nfrom typing import List, Callable, TypeVar\nfrom databricks.sdk import WorkspaceClient\n\nT = TypeVar(\"T\")\n\nasync def batch_api_calls(\n    w: WorkspaceClient,\n    items: List[any],\n    operation: Callable[[WorkspaceClient, any], T],\n    concurrency: int = 5,\n    delay_between_batches: float = 1.0,\n) -> List[T]:\n    \"\"\"\n    Execute API calls in batches with rate limiting.\n\n    Args:\n        w: WorkspaceClient instance\n        items: Items to process\n        operation: Function to call for each item\n        concurrency: Max concurrent requests\n        delay_between_batches: Delay between batches\n\n    Returns:\n        List of results\n    \"\"\"\n    results = []\n    semaphore = asyncio.Semaphore(concurrency)\n    loop = asyncio.get_event_loop()\n\n    async def process_item(item):\n        async with semaphore:\n            # Run in thread pool since SDK is sync\n            with ThreadPoolExecutor() as executor:\n                result = await loop.run_in_executor(\n                    executor,\n                    lambda: with_exponential_backoff(\n                        lambda: operation(w, item)\n                    )\n                )\n            return result\n\n    # Process in batches\n    batch_size = concurrency * 2\n    for i in range(0, len(items), batch_size):\n        batch = items[i:i + batch_size]\n        batch_results = await asyncio.gather(\n            *[process_item(item) for item in batch],\n            return_exceptions=True\n        )\n        results.extend(batch_results)\n\n        # Delay between batches\n        if i + batch_size \u003C len(items):\n            await asyncio.sleep(delay_between_batches)\n\n    return results\n\n# Usage\nasync def update_all_job_tags(w: WorkspaceClient, job_ids: List[int], tags: dict):\n    def update_job(w, job_id):\n        return w.jobs.update(job_id=job_id, new_settings={\"tags\": tags})\n\n    results = await batch_api_calls(\n        w, job_ids, update_job,\n        concurrency=5,\n        delay_between_batches=1.0\n    )\n    return results\n```\n\n### Step 5: Idempotency for Job Submissions\n```python\n# src\u002Fdatabricks\u002Fidempotent.py\nimport hashlib\nimport json\nfrom typing import Optional\nfrom databricks.sdk import WorkspaceClient\nfrom databricks.sdk.service.jobs import RunNow, BaseRun\n\ndef generate_idempotency_token(\n    job_id: int,\n    params: dict,\n    timestamp_bucket: int = 3600,  # 1 hour buckets\n) -> str:\n    \"\"\"\n    Generate deterministic idempotency token for job run.\n\n    Uses timestamp buckets to allow retries within a time window\n    while preventing duplicate runs across windows.\n    \"\"\"\n    import time\n    bucket = int(time.time()) \u002F\u002F timestamp_bucket\n\n    data = json.dumps({\n        \"job_id\": job_id,\n        \"params\": params,\n        \"bucket\": bucket,\n    }, sort_keys=True)\n\n    return hashlib.sha256(data.encode()).hexdigest()[:32]\n\ndef idempotent_run_now(\n    w: WorkspaceClient,\n    job_id: int,\n    notebook_params: Optional[dict] = None,\n    idempotency_token: Optional[str] = None,\n) -> BaseRun:\n    \"\"\"\n    Submit job run with idempotency guarantee.\n\n    If a run with the same idempotency token exists,\n    returns the existing run instead of creating a new one.\n    \"\"\"\n    # Generate token if not provided\n    if not idempotency_token:\n        idempotency_token = generate_idempotency_token(\n            job_id,\n            notebook_params or {}\n        )\n\n    # Check for existing run with same token\n    recent_runs = list(w.jobs.list_runs(\n        job_id=job_id,\n        active_only=True,\n    ))\n\n    for run in recent_runs:\n        # Check if run was started with same token\n        # (Token would need to be stored in run tags in practice)\n        pass\n\n    # Submit new run\n    run = w.jobs.run_now(\n        job_id=job_id,\n        notebook_params=notebook_params,\n    )\n\n    return run\n```\n\n## Output\n- Reliable API calls with automatic retry\n- Rate-limited request queue\n- Async batch processing for bulk operations\n- Idempotent job submissions\n\n## Error Handling\n| Scenario | Behavior | Configuration |\n|----------|----------|---------------|\n| HTTP 429 | Exponential backoff | `max_retries=5` |\n| HTTP 503 | Retry with delay | `base_delay=1.0` |\n| Conflict (409) | Retry once | Check idempotency |\n| Timeout | Retry with increased timeout | `max_delay=60` |\n\n## Examples\n\n### Bulk Cluster Operations\n```python\nfrom databricks.sdk import WorkspaceClient\n\nw = WorkspaceClient()\n\n# Rate-limited listing\n@rate_limited(\"workspace\")\ndef safe_list_clusters():\n    return list(w.clusters.list())\n\n# Bulk updates with queue\ncluster_ids = [c.cluster_id for c in safe_list_clusters()]\n\nasync def update_all_clusters():\n    results = await batch_api_calls(\n        w,\n        cluster_ids,\n        lambda w, cid: w.clusters.edit(\n            cluster_id=cid,\n            autotermination_minutes=30\n        ),\n        concurrency=3\n    )\n    return results\n\n# Run async\nimport asyncio\nasyncio.run(update_all_clusters())\n```\n\n### Monitor Rate Limit Usage\n```python\nclass RateLimitMonitor:\n    \"\"\"Track rate limit usage across API calls.\"\"\"\n\n    def __init__(self):\n        self.calls = []\n        self.window_seconds = 60\n\n    def record_call(self, category: str):\n        import time\n        now = time.time()\n        self.calls.append({\"time\": now, \"category\": category})\n        # Cleanup old entries\n        self.calls = [c for c in self.calls if now - c[\"time\"] \u003C self.window_seconds]\n\n    def get_rate(self, category: str) -> float:\n        import time\n        now = time.time()\n        recent = [c for c in self.calls\n                  if c[\"category\"] == category and now - c[\"time\"] \u003C self.window_seconds]\n        return len(recent) \u002F self.window_seconds\n\n    def should_throttle(self, category: str, limit: float) -> bool:\n        return self.get_rate(category) > limit * 0.8  # 80% threshold\n```\n\n## Resources\n- [Databricks API Rate Limits](https:\u002F\u002Fdocs.databricks.com\u002Fdev-tools\u002Fapi\u002Flatest\u002Frate-limits.html)\n- [Best Practices for API Usage](https:\u002F\u002Fdocs.databricks.com\u002Fdev-tools\u002Fapi\u002Flatest\u002Fbest-practices.html)\n\n## Next Steps\nFor security configuration, see `databricks-security-basics`.\n",{"name":5,"author":54,"license":15,"version":55,"description":56,"allowed-tools":57},"Jeremy Longshore \u003Cjeremy@intentsolutions.io>","1.0.0","Implement Databricks API rate limiting, backoff, and idempotency patterns.\nUse when handling rate limit errors, implementing retry logic,\nor optimizing API request throughput for Databricks.\nTrigger with phrases like \"databricks rate limit\", \"databricks throttling\",\n\"databricks 429\", \"databricks retry\", \"databricks backoff\".\n","Read, Write, Edit","main","90b50ed0778745a80fd5bfb13b1843d45b9e82f7","tests\u002Fext_conformance\u002Fartifacts\u002Fplugins-community\u002Fplugins\u002Fsaas-packs\u002Fdatabricks-pack\u002Fskills\u002Fdatabricks-rate-limits",233,"https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust","https:\u002F\u002Fgithub.com\u002FDicklesworthstone","https:\u002F\u002Fwww.jeffreyemanuel.com\u002F","Building in NY","2026-11-15 01:54:15",{"source":8,"skillName":5,"commands":68,"prompt":78,"zipAvailable":79},[69,72,75],{"tool":70,"command":71},"npx","npx skills add Dicklesworthstone\u002Fpi_agent_rust --skill databricks-rate-limits",{"tool":73,"command":74},"bunx","bunx skills add Dicklesworthstone\u002Fpi_agent_rust --skill databricks-rate-limits",{"tool":76,"command":77},"pnpm","pnpm dlx skills add Dicklesworthstone\u002Fpi_agent_rust --skill databricks-rate-limits","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Fplugins-community\u002Fplugins\u002Fsaas-packs\u002Fdatabricks-pack\u002Fskills\u002Fdatabricks-rate-limits\u002FSKILL.md",true,[],[82,115,150,173,199,226],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":86,"licenseFileUrl":87,"sourceHtmlUrl":88,"categories":89,"keywords":95,"publishedAt":114},"01M6FCR7G5A005P364Z6ZWCJDP","theme-factory","Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with colors\u002Ffonts that you can apply to any artifact that has been creating, or can generate a new theme on-the-fly.","Apache-2.0","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fcreative-design\u002Ftheme-factory\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fcreative-design\u002Ftheme-factory\u002FSKILL.md",[90],{"categoryNo":91,"categoryName":92,"taxonomyType":93,"taxonomyTypeDesc":94},"01JBSEEDCAT000000000000015","视觉设计","SCENARIO","使用场景",[96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,35,112,113],"theme factory","factory","theme","docs","toolkit","generate","artifacts","SET","fly","slides","landing","html","styling","artifact","pages","themes","you","fonts","2026-11-11 15:11:14",{"skillNo":116,"name":117,"nameZh":6,"description":118,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":86,"licenseFileUrl":119,"sourceHtmlUrl":120,"categories":121,"keywords":125,"publishedAt":49},"01M6FEGPPK0ZTKCCM0R3E3KS33","web-artifacts-builder","Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn\u002Fui). Use for complex artifacts requiring state management, routing, or shadcn\u002Fui components - not for simple single-file HTML\u002FJSX artifacts.","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Futilities\u002Fweb-artifacts-builder\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Futilities\u002Fweb-artifacts-builder\u002FSKILL.md",[122],{"categoryNo":123,"categoryName":124,"taxonomyType":93,"taxonomyTypeDesc":94},"01JBSEEDCAT000000000000009","前端开发",[126,127,102,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,43,107,143,144,145,146,147,148,149],"web artifacts builder","web","artifacts builder","builder","frontend","css","components","react","component","routing","state management","state","shadcn","file","ui","Tools","Tailwind","single-file","simple","ui components","multi","for","jsx","suite",{"skillNo":151,"name":152,"nameZh":6,"description":153,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":86,"licenseFileUrl":154,"sourceHtmlUrl":155,"categories":156,"keywords":161,"publishedAt":49},"01M6FEE9VTK1W4GY21AKREJXRG","webapp-testing","Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fsecurity\u002Fwebapp-testing\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fsecurity\u002Fwebapp-testing\u002FSKILL.md",[157,160],{"categoryNo":158,"categoryName":159,"taxonomyType":93,"taxonomyTypeDesc":94},"01JBSEEDCAT000000000000008","测试与质量",{"categoryNo":123,"categoryName":124,"taxonomyType":93,"taxonomyTypeDesc":94},[162,163,164,130,165,166,127,167,100,168,140,169,170,171,172,35,147],"testing","webapp testing","webapp","screenshots","playwright","debugging","browser","logs","applications","behavior","local",{"skillNo":174,"name":175,"nameZh":6,"description":176,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":177,"sourceHtmlUrl":178,"categories":179,"keywords":180,"publishedAt":49},"01M6FE20F7ZTQBFWKF4MPJ2SBX","neuropixels-analysis","Neuropixels neural recording analysis. Load SpikeGLX\u002FOpenEphys data, preprocess, motion correction, Kilosort4 spike sorting, quality metrics, Allen\u002FIBL curation, AI-assisted visual analysis, for Neuropixels 1.0\u002F2.0 extracellular electrophysiology. Use when working with neural recordings, spike sorting, extracellular electrophysiology, or when the user mentions Neuropixels, SpikeGLX, Open Ephys, Kilosort, quality metrics, or unit curation.","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fscientific\u002Fneuropixels-analysis\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fscientific\u002Fneuropixels-analysis\u002FSKILL.md",[],[181,182,183,184,185,186,187,188,43,189,190,191,192,193,194,195,35,196,197,198,147,25],"analysis","neuropixels analysis","spike","metrics","data","open","quality","user","recordings","Neural","motion","visual","quality metrics","unit","sorting","curation","recording","load",{"skillNo":200,"name":201,"nameZh":6,"description":202,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":86,"licenseFileUrl":203,"sourceHtmlUrl":204,"categories":205,"keywords":209,"publishedAt":49},"01M6FDP0PDK6F1GGX395C7625Z","skill-creator","Guide for creating effective skills. This skill should be used when users want to create a new skill (or update an existing skill) that extends Claude's capabilities with specialized knowledge, workflows, or tool integrations.","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fproductivity\u002Fskill-creator\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fproductivity\u002Fskill-creator\u002FSKILL.md",[206],{"categoryNo":207,"categoryName":208,"taxonomyType":93,"taxonomyTypeDesc":94},"01JBSEEDCAT000000000000023","Skill与智能体开发",[210,211,212,213,214,215,216,217,218,219,220,221,222,223,35,147,224,25,225],"skill creator","creator","workflows","create","update","capabilities","knowledge","tool","integrations","specialized","guide","new skill","existing skill","users","Existing","new",{"skillNo":227,"name":228,"nameZh":6,"description":229,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":230,"sourceHtmlUrl":231,"categories":232,"keywords":234,"publishedAt":49},"01M6FDM8Y7VK7NYG9SM7QPA3PW","notebooklm","Use this skill to query your Google NotebookLM notebooks directly from Claude Code for source-grounded, citation-backed answers from Gemini. Browser automation, library management, persistent auth. Drastically reduced hallucinations through document-only responses.","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fproductivity\u002Fnotebooklm\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fproductivity\u002Fnotebooklm\u002FSKILL.md",[233],{"categoryNo":207,"categoryName":208,"taxonomyType":93,"taxonomyTypeDesc":94},[228,235,236,237,238,239,240,168,241,242,43,243,244,245,246,147,247],"google","browser automation","gemini","automation","auth","code","library","management","only","document","query","Citation","source"]