Job in UCloud is the core abstraction used to describe a unit of computation.
data class Job( val id: String, val owner: ResourceOwner, val updates: List<JobUpdate>, val specification: JobSpecification, val status: JobStatus, val createdAt: Long, val output: JobOutput?, val permissions: ResourcePermissions?, val providerGeneratedId: String?, )
They provide users a way to run their computations through a workflow similar to their own workstations but scaling to
much bigger and more machines. In a simplified view, a
Job describes the following information:
Applicationwhich the provider should/is/has run (see app-store)
The input parameters required by a
A reference to the appropriate compute infrastructure, this includes a reference to the provider
Job is started by a user request containing the
specification of a
Job This information is verified by the UCloud
orchestrator and passed to the provider referenced by the
Job itself. Assuming that the provider accepts this
Job is placed in its initial state,
IN_QUEUE. You can read more about the requirements of the
compute environment and how to launch the software
At this point, the provider has acted on this information by placing the
Job in its own equivalent of
a job queue. Once the provider realizes that the
Job is running, it will contact UCloud and place the
Job in the
RUNNING state. This indicates to UCloud that log files can be retrieved and that interactive
WEB) are available.
Application terminates at the provider, the provider will update the state to
terminated successfully if no internal error occurred in UCloud and in the provider. This means that a
software returns with a non-zero exit code is still considered successful. A
Job might, for example, be placed
FAILURE if the
Application crashed due to a hardware/scheduler failure. Both
FAILURE are terminal
Job which is in a terminal state can no longer receive any updates or change its state.
Unique identifier for this job.
UCloud guarantees that no other job, regardless of compute provider, has the same unique identifier.
A reference to the owner of this job
The status updates tell a story of what happened with the job. This list is ordered by the timestamp in ascending order. The current state of the job will always be the last element.
updates is guaranteed to always contain at least one element.
The specification used to launch this job.
This property is always available but must be explicitly requested.
A summary of the `Job`'s current status
Timestamp referencing when the request for creation was received by UCloud
Information regarding the output of this job.
Permissions assigned to this resource
A null value indicates that permissions are not supported by this resource type.