Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct { Router *mux.Router Metrics ServiceMetrics // contains filtered or unexported fields }
func NewService ¶
func NewService() *Service
func (*Service) CreateTrainingJob ¶
CreateTrainingJob
- Validate job spec
- Get or create base job info by job category
- Pre-process job spec
- Create training job 4.1. Insert job info to db 4.2. Insert job metadata to db
- Publish msg to mq, which is meant to be subscribed by the scheduler
func (*Service) DeleteTrainingJob ¶
DeleteTrainingJob 1. Delete job metadata from db 2. Publish msg to mq, which is meant to be subscribed by the scheduler
type ServiceMetrics ¶ added in v0.2.2
type ServiceMetrics struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.