domino-jobs
Create, run, and manage Domino Jobs - batch executions for scripts, training, and data processing. Covers starting a Job from the UI, CLI or REST API, hardware tiers and environments, scheduled Jobs (Quartz cron, UI or API), status and logs, stopping Jobs, results and notifications. Use when running batch workloads, scheduling recurring tasks, or automating training pipelines. For the CLI itself use domino-cli; for multi-step pipelines domino-flows; for an existing Airflow or Kubeflow domino-airflow-kubeflow; for batch scoring with a model use domino-model-delivery.
- License 许可
- MIT
- 最近更新
- 2026-11-14
- Stars
- ★ 5
- Forks
- 4
01 前言 Front Matter
- name
- domino-jobs
- description
- Create, run, and manage Domino Jobs - batch executions for scripts, training, and data processing. Covers starting a Job from the UI, CLI or REST API, hardware tiers and environments, scheduled Jobs (Quartz cron, UI or API), status and logs, stopping Jobs, results and notifications. Use when running batch workloads, scheduling recurring tasks, or automating training pipelines. For the CLI itself use domino-cli; for multi-step pipelines domino-flows; for an existing Airflow or Kubeflow domino-airflow-kubeflow; for batch scoring with a model use domino-model-delivery.
- compatibility
- Domino 6.3 and Domino Cloud. Requires DOMINO_API_HOST; in a run use DOMINO_API_PROXY or the localhost:8899 access-token endpoint, outside a run a Personal Access Token.
02 资源文件 2
- 参考文档SCHEDULED-JOBS.md7.3 KB
- 参考文档SCRIPT-PATTERNS.md10.4 KB
03 SKILL.md 正文
Domino Jobs
Applies to Domino 6.3 and Domino Cloud.
A Job runs one command to completion in its own container on a hardware tier, recording the Project files, environment revision, data mounts and inputs. Interactive work: domino-workspaces; web forms that start Jobs: domino-launchers; batch scoring with a model: domino-model-delivery.
Authentication: domino-api-intro.
Start a Job
A Job runs the Project's committed files, not the Workspace disk: in a DFS Project upload or sync new or changed scripts first (MCP sync_local_file_to_domino or File Changes > Sync to Domino); Git-based Projects: commit and push.
UI: Jobs > Run. Command or File Name with arguments (train.py --epochs 100), pick environment, revision and volume size, Next, pick the hardware tier, optionally a compute cluster (domino-distributed-computing) and per-asset snapshot pins, then start.
CLI: domino run <file> [args] (--wait blocks, --direct "<shell command>") from a logged-in CLI Project directory; setup and commands: domino-cli.
REST: POST /api/jobs/v1/jobs (both specs). Only projectId and runCommand are required; the rest defaults from the Project. A misspelt field (hardwareTierId) or unknown tier id still returns 200 and the Job silently runs on the default tier; verify below.
Right after an upload (DFS): the head can lag by seconds, and a Job without commitId may run the previous commit. The MCP run_domino_job pins the commit by itself; over REST pin commitId per SCRIPT-PATTERNS.md; Git-based: mainRepoGitRef.
import os, requests
r = requests.post(f"{os.environ['DOMINO_API_PROXY']}/api/jobs/v1/jobs", json={
"projectId": os.environ["DOMINO_PROJECT_ID"],
"runCommand": "python train.py --epochs 100",
"title": "Training run",
# "hardwareTier": "small-k8s", # tier id from GET /api/hardwaretiers/v1/hardwaretiers
# "environmentId": "<id>", "environmentRevisionSpec": "ActiveRevision",
# "mainRepoGitRef": {"refType": "branches", "value": "main"}, # Git-based; refType: head | commitId | tags | branches (not "branch")
# "commitId": "<DFS commit>", # pin after an upload; DFS history only
# also: computeCluster, netAppVolumeIds, externalVolumeMountIds, snapshotDatasetsOnCompletion
})
r.raise_for_status()
job = r.json()["job"] # response: {"job": {...}, "metadata": {...}}
print(job["id"], job["number"], job["status"]["executionStatus"])
Tags: POST /api/jobs/v1/jobs/{jobId}/tags {"projectId", "tagName"}; DELETE .../tags/{tagId}?projectId=... (required).
Which path applies
Read GET $DOMINO_API_HOST/version. On 6.3.x use only the routes above. On 6.4 and later POST /api/jobs/v1/projects/{projectId}/job-defaults also exists: send {} or start-Job field overrides to preview a Job's resolved configuration (404 = absent).
Monitor a Job
Both specs (beta).
- List:
GET /api/jobs/beta/jobs?projectId=...&statusFilter=all|queued|running|completed|archived|active&limit=&offset=->{"jobs": [...], "metadata": {..., "totalCount"}}. - Details:
GET /api/jobs/beta/jobs/{jobId}->job.status.executionStatus(Queued...Running,Succeeded,Stopped,Failed,Error; see job-states),status.isCompleted,stageTimes.{submissionTime,startTime,completedTime},commitDetails.{inputCommitId,outputCommitId},usage,computeCluster,runLauncherId. - Logs:
GET /api/jobs/beta/jobs/{jobId}/logs?logType=stdOut|stdErr|prepareOutput|complete&limit=1000&latestTimeNano=...->logs.logContent[].{timestamp,logType,log},logs.isComplete,metadata.pagination.latestTimeNano. Code: SCRIPT-PATTERNS.md. - Verify what a Job ran on: the Job object omits them; use the Details tab or
GET /v4/jobs/{jobId}/runtimeExecutionDetails->hardwareTier.id,environment.environmentId(non-public route; may change in a future Domino version; python-dominojob_runtime_execution_details(job_id)wraps it).
Stop, re-run, archive
- Stop: Jobs > Active, select, Stop. No public stop route; internal
POST /v4/jobs/stop{"projectId", "jobId", "commitResults"}(non-public route; may change in a future Domino version; python-dominojob_stop(job_id, commit_results=True), domino-python-sdk). - Re-run: select a Job > Re-Run with Original Version or Re-Run with Current Version (Git refs refresh only if the original ran from a branch).
- Archive hides Jobs (
showArchived=truelists them).
Scheduled Jobs
UI: Jobs > Schedules > Schedule a Job. API: POST /v4/projects/{projectId}/scheduledjobs (non-public route; may change in a future Domino version; no public route or SDK method), then GET, PUT (edit or pause via isPaused) and DELETE on .../{scheduledJobKey}. Body, firings and examples: SCHEDULED-JOBS.md.
Schedule is a repeat interval or a Quartz CronTrigger expression (six fields, seconds first; not crontab), evaluated in timezoneId; layout, examples and special characters: SCRIPT-PATTERNS.md.
Pipelines: domino-flows; Airflow or Kubeflow: domino-airflow-kubeflow.
Results and notifications
Files changed under the Project files are results. Write dominostats.json at the Project root for dashboard columns, email.html for the success email, .dominoresults to choose what is shown and attached; .dominoignore drops files from the revision. Success emails per collaborator: Settings > Access and Sharing, or PATCH /v4/projects/{projectId}/notificationPreference (non-public route; may change in a future Domino version; SCRIPT-PATTERNS.md).
Troubleshooting
can't open file: the file is not in the commit the Job ran. Never uploaded or synced: do that first. Uploaded seconds before starting: pincommitId.400fromPOST /api/jobs/v1/jobs: acommitIdnot in the Project's DFS history (usemainRepoGitReffor Git) or an environment the Project cannot use; a wrong tier id gives no error.- Queued or Building, Failed vs Error, missing results: SCRIPT-PATTERNS.md.
Reference files and docs
- SCRIPT-PATTERNS.md: commands, env vars, outputs, logs, cron, troubleshooting. SCHEDULED-JOBS.md: schedules over the API.
- https://docs.domino.ai/cloud/platform-capabilities/core-concepts/jobs/create-and-run-jobs,
.../schedule-a-job,.../monitor-jobs,.../job-states(same paths under/6.3/). - Slurm HPC Jobs (the HPC tab,
/api/hpc/v1/jobs): domino-hpc-slurm.
04 同仓库更多 Skills
tags-and-properties
Manage Domino tags and properties via the Tags (Taxonomy) API at /api/taxonomy/v1. Covers namespaces and tags (create, list, update, deprecate, delete; tag entities such as projects, models, datasets, apps, project templates, NetApp volumes, environments; query by tag; autocomplete; merge; CSV import/export) and properties (typed metadata fields - text, number, date, boolean, url, user, organization, select, multi_select - with per-entity values, groups and versioned entities like model_version/app_version). Use when organizing entities with tags, building hierarchical namespaces, defining typed metadata fields, setting property values, finding entities by tag, bulk-tagging during onboarding, or migrating a taxonomy across environments.
netapp-volumes
Work with Domino Volumes for NetApp ONTAP (NetApp Volumes) - shared, multi-terabyte storage with near-instant snapshots. Covers creating volumes, attaching them to projects, mount paths (/mnt/netapp-volumes/ or /domino/netapp-volumes/), snapshots and tags, roles, deletion, mounting volumes in jobs, and the NetApp Volumes REST API (/remotefs/v1). Use when managing large-scale shared data, taking fast no-copy snapshots, or integrating NetApp ONTAP storage with Domino.
domino-workspaces
Work with Domino Workspaces - interactive sessions running Jupyter, JupyterLab, VS Code or RStudio on a hardware tier with a compute environment. Covers launching and configuring a Workspace, what persists across stop and resume, file paths and syncing for DFS and Git-based Projects, package and home-directory persistence, SSH access from a local IDE, the Workspace API routes, and troubleshooting. Use when setting up or debugging an interactive development session in Domino.
domino-ui-bootstrap
Bootstrap or retrofit a Vite + React 18 + TypeScript project so it uses the Domino design system (`@dominodatalab/extensions-tools`). Scoped to a **fully standalone SPA frontend for a Domino application or extension**, not snippets, library additions, or work inside an existing Domino monorepo package. Use whenever the user wants to create, scaffold, refactor, retrofit, or set up such an SPA (a React app, web app, frontend, UI, or extension) that should "look like Domino", use Domino components, follow the Domino design system, or integrate with the Domino platform, including when they mention DominoThemeProviderDecorator, extensions-tools, or base-components without saying "Domino". Also use to make an existing standalone React/Vite project "Domino-styled" or add Domino theming. Handles React 18 / react-router 5 pinning, Storybook MCP registration, theme provider wiring, and build verification.
domino-trace-setup
Set up GenAI tracing for an LLM or agent application in Domino by checking the Domino SDK and MLflow requirements (the DSE needs nothing installed), then adding a tracing_setup.py helper, span evaluators, a config.yaml, and @add_tracing / DominoAgentContext wiring. Use when the user asks to add tracing, observability, or evaluation to an agent or LLM app running on Domino.
domino-rust-apps
Build a Rust web app (axum) in Domino and ship it as a Domino App that starts from a prebuilt binary. Covers installing a pinned Rust toolchain into a Compute Environment with rustup, Cargo project defaults (edition 2024, rust-toolchain.toml, Cargo.lock, Clippy pedantic, rustfmt, cargo-nextest, cargo-deny), rust-analyzer for the IDE and coding agents, check hooks, calling Domino as the viewer with extended identity propagation, dev and release build profiles, keeping target/ out of Git and Domino storage, and an app.sh that runs the binary in App Preview and deployments without compiling. Use when the user wants a Rust app, API, dashboard or Proa site on Domino, a performance-sensitive or correctness-critical App, or asks to set up Rust, cargo, Clippy, nextest or rust-analyzer in a Domino Workspace or environment.