long-running-server

Run long-running AI agent tasks with asynchronous HTTP polling and streaming.

4|Updated May 9, 2026
One-click install
npx skills add https://github.com/victorlou/housing-assistant --skill long-running-server-victorlou
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: long-running-server
Source: https://github.com/victorlou/housing-assistant/tree/main/app/app-templates/.claude/skills/long-running-server
Command: npx skills add https://github.com/victorlou/housing-assistant --skill long-running-server-victorlou

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires databricks-ai-bridge[agent-server]>=0.18.0, mlflow.genai.agent_server, python-dotenv, dataclasses.

What problem does it solve?

Prevents AI agent requests from failing or timing out when background work needs more than an HTTP timeout to complete.

Core Features & Use Cases

  • Background + Polling Responses: Submit agent work asynchronously with background=true, then retrieve results later by response id.
  • Background + Streaming with Resumption: Stream incremental events for long tasks and support cursor-based continuation via starting_after.
  • Lakebase-Persisted Execution: Persists long-running task state to Lakebase PostgreSQL so clients can poll or resume after timeouts.
  • Use When You Need Long Agent Reasoning: Ideal for workflows that include multi-step tool calls, heavy queries, or long reasoning over lakehouse data.

Quick Start

Configure Lakebase and then deploy the server using LongRunningAgentServer so you can run requests with background=true and check results via GET /responses/{id}.

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 AI agent tasks without hitting HTTP timeouts?▼

You prevent long-running AI agent requests from timing out by submitting work asynchronously with background=true, then retrieving results later via GET /responses/{id}. This allows background tasks to complete reliably beyond standard HTTP timeout limits.

How does streaming with resumption work for background agent workloads?▼

Streaming with resumption works by streaming incremental events for long tasks and supporting cursor-based continuation via starting_after. This allows clients to resume streaming background agent workloads after network interruptions or timeouts.

Do I need Lakebase PostgreSQL to persist background task state?▼

Yes, you need Lakebase PostgreSQL to persist long-running task state. Lakebase persistence ensures clients can poll or resume background agent execution after timeouts by storing task state reliably in the PostgreSQL database.

Can I use background polling for multi-step reasoning and tool calls?▼

Yes, you can use background polling for multi-step reasoning and tool calls. Configure LongRunningAgentServer with task_timeout_seconds and poll_interval_seconds to ensure reliable background processing for complex agent workloads over lakehouse data.

What are the limitations of polling intervals for asynchronous agent execution?▼

Polling intervals for asynchronous agent execution are limited by configurable poll_interval_seconds and task_timeout_seconds settings. If background work exceeds task_timeout_seconds, requests may fail, so configure these parameters based on your workload's complexity.