Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SlurmControlInterface ¶
type SlurmControlInterface interface {
// IsJobRunning returns true if the Slurm job is running, false if not.
IsJobRunning(ctx context.Context, pod *corev1.Pod) (bool, error)
// IsJobPendingOrRunning returns true if the Slurm job with the given jobId is pending or running.
IsJobPendingOrRunning(ctx context.Context, jobId int32) (bool, error)
// TerminateJob cancels the Slurm job by JobId
TerminateJob(ctx context.Context, jobId int32) error
}
func NewControl ¶
func NewControl(client client.Client) SlurmControlInterface
Click to show internal directories.
Click to hide internal directories.