Create or update job
Create a new job or update an existing one. If a job with the same heimdall_job_id exists, it will be updated; otherwise, a new job will be created.
Request
CreateOrUpdateJobRequest is used to create or update a job. If a job with the same heimdall_job_id exists, it will be updated; otherwise, a new job will be created.
workflowId
The workflow ID this job belongs to.
heimdallJobId
The UUID for the job. If not provided, will be computed from job_id and attempt_index.
jobId
Scheduler-specific job identifier.
attemptIndex
The attempt index for this job.
jobName
The name of the job.
allocatedNodes
List of nodes allocated to the job.
gpuCountPerNode
Number of GPUs per node.
nodeConstraints
NodeConstraints defines node scheduling constraints for jobs.
additionalProperties
JobAdditionalProperties contains additional configuration properties for jobs.
state
JobStatus represents the state of a job.
- JOB_STATUS_UNSPECIFIED: The status is not specified.
- JOB_STATUS_PENDING: The job has been created but is not started yet due to being queued, waiting for resources or is pulling container images etc…
- JOB_STATUS_RUNNING: The job is scheduled and has started running.
- JOB_STATUS_STOPPED: A stopped job is no longer running or using resources.
- JOB_STATUS_COMPLETED: The job completed without reporting an error.
- JOB_STATUS_FAILED: The job exited with an error status.
- JOB_STATUS_CANCELLED: Job was cancelled by the user or system.
- JOB_STATUS_DELETED: The job is deleted.
schedulerMetadata
Scheduler-specific metadata (e.g., CRD kind, namespace, labels, annotations).
recoveryConfig
JobRecoveryConfig contains typed recovery policy for scheduler jobs.
Response
A successful response.
job
Job represents a job tracked by the Advisor, including both actual (observed) and desired (advisor-set) states.