Skip to main content

Workload lifecycle

Workloads and runs​

A workload describes software you want OmniCloud to run. Its YAML specification contains one to ten components. Each component selects a container image and can provide a command, arguments, environment variables, network ports, and a GPU request.

You can submit the specification directly for one ad hoc run, or save it as a named Workload Definition for reuse. A Workload Run is one independently tracked execution. Updating a definition changes only future runs.

Ad hoc workloads runs are one-off executions that do not need to keep a Workload Definition blueprint in memory. It allows users to test a Workload without polluting the Workload Definitions database.

Component modes​

Each component in a workload is either a job or a service:

ModeRuns asUse it for
jobA finite processBatch processing, data analysis, or any task that exits when finished. OmniCloud does not automatically retry a failed job.
serviceA long-running processAn API, callback receiver, or worker that remains active until you cancel the run. A service does not normally reach Succeeded by itself.

You can combine both modes in one workload. For example, a service can receive a callback while a job processes the received data.

TCP ports​

Declare a named port when a component needs to expose a TCP endpoint for other workloads:

spec:
components:
- name: callback
mode: service
image: registry.dphi.space/base/pytorch:25.08-py3
ports:
- name: http
port: 8080

OmniCloud creates an internal endpoint named after the component. Declaring a port does not publish it to the network or to another tenant. Endpoint names are shared across your tenant, so two active runs must not use the same name for port-bearing components. A job endpoint is temporary; a service endpoint lasts until the service is stopped.

Workload Definitions and Repeating work​

A Workload Definition is a reusable blueprint, not a calendar schedule. OmniCloud does not currently provide periodic or cron execution. Start the definition again whenever you need another run.

info

Periodic and cronjob workloads are under designed and will be available in the future.

From request to result​

Creating a Workload Definition with its first run, starting an existing definition, and creating an ad hoc run are asynchronous. The returned Run ID means OmniCloud accepted the request; it does not mean a component has started.

See acceptance output, pending capacity diagnostics, successful status, and failed component output.

Diagram in words: accepted runs begin Pending, normally progress through Running and Completing to Succeeded, and can instead fail or be cancelled while active.

Unknown can temporarily replace an active phase when OmniCloud cannot safely determine the current state. It is not terminal; continue observing the run.

PhaseMeaningWhat you should do
PendingThe run is accepted but one or more components cannot start yet.Wait or inspect diagnostics such as missing credentials or GPU capacity.
RunningAt least one component is active.Read logs or continue waiting.
FailingA component failed and OmniCloud is stopping remaining work.Wait for Failed, then inspect component diagnostics and logs.
CompletingJobs finished and temporary endpoints are being removed.Continue waiting.
CancelingCancellation was accepted and components are stopping.Continue waiting.
SucceededAll finite work and cleanup completed successfully.Retrieve logs and artifacts.
FailedThe run cannot recover.Inspect run get and run logs.
CanceledCancellation completed.Confirm whether partial output is useful.
UnknownCurrent state cannot be established safely.Continue observing; contact support if it persists.

Runs containing a service will remain Running until you cancel them, even if job components have finished.

Terminal run records are retained for seven days under current pilot policy. This is separate from storage retention. Retrieve required logs promptly and manage stored artifacts according to your pilot agreement.