Cloud Task Overview
OOMOL Cloud Task is the user-facing task execution API behind OOMOL Cloud services. It lets you submit serverless block runs, poll for status, fetch results, manage your queue, and upload input files.
What You Can Build
- Trigger a published block from your own application
- Poll long-running jobs until they finish
- Upload files before task creation and pass the returned URL into
inputValues - Pause or resume the current user's queue
- Expose Cloud Task as MCP tools for AI agents
Current Scope
The current SDKs in this repo target Cloud Task API v3 and focus on one workload type:
serverless
Task creation always targets:
packageNamepackageVersionblockName- optional
inputValues
Choose The Right Integration
| Option | Best for | Install |
|---|---|---|
| TypeScript / JavaScript SDK | Web apps, Node.js services, browser-side integrations | npm install oomol-cloud-task-sdk |
| Python SDK | Python backends, scripts, data tooling | pip install oomol-cloud-task-sdk |
| MCP SDK | MCP Server wrappers for AI tools and agents | npm install oomol-cloud-mcp-sdk |
| HTTP with curl | Minimal integrations, debugging, non-SDK environments | No SDK required |
Authentication
Cloud Task v3 supports two authentication modes:
- Bearer Token: pass an API key to the SDK, or send
Authorization: Bearer <apiKey> - Cookie: keep the
oomol-tokencookie attached to requests
Core Workflow
- Create a task.
- Store the returned
taskID. - Poll the task result until it reaches
successorfailed. - Read
resultURLorresultDatawhen the task succeeds.
Common Task States
- In progress:
queued,scheduling,scheduled,running - Final:
success,failed