long-running-server

Execute long-running background tasks with PostgreSQL result storage.

6|10|Updated Mar 23, 2026
One-click install
npx skills add https://github.com/AnanyaDBJ/databricks-ai-workshops --skill long-running-server-ananyadbj
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: long-running-server
Source: https://github.com/AnanyaDBJ/databricks-ai-workshops/tree/main/medium/.claude/skills/long-running-server
Command: npx skills add https://github.com/AnanyaDBJ/databricks-ai-workshops --skill long-running-server-ananyadbj

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires databricks-ai-bridge[agent-server], and includes scripts (resource) components.

What problem does it solve?

This Skill allows you to run long-running background tasks that exceed standard HTTP timeouts, providing asynchronous execution and persistent storage of results.

Core Features & Use Cases

  • Long-Running Task Execution: Tasks that exceed HTTP timeout limits can be run in the background.
  • Persistent Storage: Results of long-running tasks are stored in Lakebase PostgreSQL.
  • Request Patterns: Supports standard, background + poll, and background + stream request patterns.
  • Use Case: Ideal for processing tasks that take more than 120 seconds, such as complex data analysis or machine learning model training.

Quick Start

Deploy the LongRunningAgentServer and run a long-running task with the following command: python start_server.py

Frequently Asked Questions about long-running-server

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run long-running background tasks that exceed HTTP timeouts?

Long-running background tasks exceeding standard HTTP timeouts can be executed asynchronously using background execution patterns. This allows operations to run independently while avoiding HTTP timeout failures.

What is the best way to handle asynchronous tasks that take more than 120 seconds?

The best way to handle asynchronous tasks taking more than 120 seconds is using background execution with persistent storage. This supports complex data analysis and model training by storing results in PostgreSQL after completion.

Does Databricks Lakebase support persistent storage for async task results?

Databricks Lakebase supports persistent storage for async task results by utilizing Lakebase PostgreSQL. This configuration ensures that results from long-running background executions are reliably persisted and retrievable.

What request patterns are available for background execution on Databricks?

Background execution on Databricks supports three request patterns: standard, background plus poll, and background plus stream. These patterns handle asynchronous operations by managing how task results are retrieved after execution.

Do I need databricks-ai-bridge to run long-running server tasks?

You need the databricks-ai-bridge agent-server dependency to run long-running server tasks. Proper Lakebase configuration is also required to enable the asynchronous execution and PostgreSQL result persistence.