daskapi

package
v0.0.0-...-6082e3c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 2, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DaskCluster

type DaskCluster struct {
	Spec DaskClusterSpec `json:"spec"`
}

type DaskClusterSpec

type DaskClusterSpec struct {
	Worker    WorkerSpec    `json:"worker"`
	Scheduler SchedulerSpec `json:"scheduler"`
}

type DaskJobSpec

type DaskJobSpec struct {
	Job     JobSpec     `json:"job"`
	Cluster DaskCluster `json:"cluster"`
}

type DaskJobStatus

type DaskJobStatus struct {
	// The name of the cluster the job is executed on
	ClusterName string `json:"clusterName,omitempty"`
	// The time the job runner pod changed to either Successful or Failing
	EndTime metav1.Time `json:"endTime,omitempty"`
	// The name of the job-runner pod
	JobRunnerPodName string `json:"jobRunnerPodName,omitempty"`
	// JobStatus describes the current status of the job
	JobStatus JobStatus `json:"jobStatus"`
	// Start time records the time the job-runner pod changed into a `running` state
	StartTime metav1.Time `json:"startTime"`
}

DaskJobStatus describes the current status of a Dask Job

type JobSpec

type JobSpec struct {
	Spec corev1.PodSpec `json:"spec"`
}

type JobStatus

type JobStatus string
const (
	DaskJobCreated        JobStatus = "JobCreated"
	DaskJobClusterCreated JobStatus = "ClusterCreated"
	DaskJobRunning        JobStatus = "Running"
	DaskJobSuccessful     JobStatus = "Successful"
	DaskJobFailed         JobStatus = "Failed"
)

type SchedulerSpec

type SchedulerSpec struct {
	Spec    corev1.PodSpec     `json:"spec"`
	Service corev1.ServiceSpec `json:"service"`
}

type WorkerSpec

type WorkerSpec struct {
	Replicas int            `json:"replicas"`
	Spec     corev1.PodSpec `json:"spec"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL