dispatcher

package
v0.0.0-...-16b5886 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type D

type D struct {
	// contains filtered or unexported fields
}

func New

func New(
	store *store.S,
	podCreator podCreatorI,
	modelRegisterClient ModelRegisterClient,
) *D

func (*D) Run

func (d *D) Run(ctx context.Context, interval time.Duration) error

Run runs the dispatcher.

type ModelRegisterClient

type ModelRegisterClient interface {
	RegisterModel(ctx context.Context, in *iv1.RegisterModelRequest, opts ...grpc.CallOption) (*iv1.RegisterModelResponse, error)
}

ModelRegisterClient is the client for the model register service.

type NoopModelRegisterClient

type NoopModelRegisterClient struct {
}

NoopModelRegisterClient is a no-op implementation of ModelRegisterClient.

func (*NoopModelRegisterClient) RegisterModel

type PodCreator

type PodCreator struct {
	// contains filtered or unexported fields
}

PodCreator creates a pod for a job.

func NewPodCreator

func NewPodCreator(
	k8sClient kubernetes.Interface,
	namespace string,
	modelStoreConfig *config.ModelStoreConfig,
	useFakeJob bool,
	huggingFaceAccessToken string,
) *PodCreator

NewPodCreator returns a new PodCreator.

Jump to

Keyboard shortcuts

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