Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

long-running-server

Skill by databricks

Upgrades a Databricks agent server to LongRunningAgentServer so tasks can run in the background past the HTTP timeout. Results are stored in Lakebase PostgreSQL and can be polled or streamed. It is for developers building agents on Databricks.

  • Score 72
  • 225 stars
  • NOASSERTION
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install long-running-server

Built from the published package, never by AI.

git clone --depth 1 https://github.com/databricks/app-templates /tmp/app-templates && mkdir -p ~/.claude/skills && cp -r /tmp/app-templates/.claude/skills/long-running-server ~/.claude/skills/long-running-server

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install long-running-server in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill walks through turning a basic AgentServer into a LongRunningAgentServer from databricks-ai-bridge. Standard requests block until they finish, which fits queries up to about 120 seconds. With background mode, a client sends a request with background set to true and then polls for the result, or streams it with cursor-based resumption using starting_after.

The setup adds a dependency, updates start_server.py with a subclass that overrides transform_stream_event, and adds helper code for replacing placeholder IDs and reading Lakebase connection settings. It also adds a lifespan hook that creates database tables at startup. Task timeout and poll interval are set through TASK_TIMEOUT_SECONDS and POLL_INTERVAL_SECONDS. The source gives OpenAI SDK and LangGraph variants. It is aimed at developers who need agent tasks that exceed normal HTTP timeouts.

Written from the project's SKILL.md and checked against it.

What it can do

  • Background and pollRuns a request in the background with background set to true, then retrieves the result by ID.
  • Background and streamStreams background results with cursor-based resumption using starting_after.
  • Lakebase persistenceStores long-running task state in Lakebase PostgreSQL so clients can poll or stream results.
  • Replace fake IDsProvides a replace_fake_id utility that swaps placeholder response IDs in streamed events.
  • Configurable timeoutsSets task_timeout_seconds and poll_interval_seconds through environment variables.

What you need

  • Python with uv
  • databricks-ai-bridge[agent-server] 0.18.0 or later
  • A configured Lakebase instance
  • Databricks deployment via databricks.yml

Try asking

  • Turn my agent server into a long-running server with background tasks
  • Set up background polling for my Databricks agent using Lakebase
  • Add async streaming with starting_after to my agent server

Good to know

  • Standard blocking requests are meant for queries up to about 120 seconds.
  • Background mode needs Lakebase. Without it, background results are not returned.
  • In the LangGraph variant, background mode is disabled if database initialization fails.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: .claude/skills/long-running-server/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to long-running-server

All alternatives →

Compare with agent-reproduce-align, google_contacts or m06-error-handling

long-running-server: common questions

When should I use LongRunningAgentServer?

The source says to use it when agent tasks may exceed the HTTP timeout of about 120 seconds, or when users want background or async execution.

Where are background task results stored?

Long-running tasks are persisted to Lakebase PostgreSQL so clients can poll or stream results.

What is the default task timeout?

The default task_timeout_seconds is 3600, and it can be changed with the TASK_TIMEOUT_SECONDS environment variable.

How do I install long-running-server?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is long-running-server free?

The code is published under the NOASSERTION licence. The service it connects to may have its own pricing.

Is long-running-server safe to use?

It scores 72 of 100. Grades: maintenance A, licence F, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to long-running-server?

Similar skills: agent-reproduce-align, google_contacts, m06-error-handling, caveman.

long-running-server Install

Add to stack

Loading.