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.
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-serverRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/databricks/app-templates /tmp/app-templates && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/app-templates/.claude/skills/long-running-server ~/.gemini/antigravity-cli/skills/long-running-serverAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install long-running-server in Antigravity CLI
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
ANo 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 →Aligns a Qwen Code feature with a Codex or Claude Code reference agent. It runs both under the same scenario, captures HTTP and terminal traces, and compares them until behavior matches.
Searches, views, creates, updates, and deletes the user's Google Contacts from an AI assistant. It is for people who want to manage their address book through conversation. A one-time Google connect is required before it returns data.
Guides an AI assistant on error handling choices. It covers when to use Result, Option, ? propagation, unwrap, expect and panic, plus anyhow and thiserror.
Caveman is an agent skill that makes an AI assistant reply in a terse style. It cuts filler and keeps technical facts, code, commands and errors exact. It is built for users who want shorter, cheaper replies.
docs-sync audits or updates English SDK documentation against the requested implementation scope. It is for maintainers who want docs to match main branch features, configuration options, and defaults.
Guides an AI assistant through setting up and running monorepos with pnpm workspaces, Turborepo and Nx. Aimed at developers who need faster builds, shared code and managed dependencies across multiple packages.
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.
