Documentation
¶
Index ¶
- type Client
- func (c *Client) JobFinished(jobId string, exitErr error) error
- func (c *Client) ListTasks() ([]byte, error)
- func (c *Client) StartTask(task *api.TrainTask) error
- func (c *Client) StopTask(id string) error
- func (c *Client) UpdateMetrics(jobId string, update *api.MetricUpdate) error
- func (c *Client) UpdateTask(task *api.TrainTask) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func MakeClient ¶
MakeClient creates a client for the parameterServer
func (*Client) JobFinished ¶
JobFinished communicates to the parameter server that a job has finished. The PS will then clear its index, metrics and also communicate with the Scheduler
func (*Client) ListTasks ¶
ListTasks returns the response of the tasks in a byte format since the usage will only be internally, the controller will just redirect the bytes to the requester
func (*Client) UpdateMetrics ¶
func (c *Client) UpdateMetrics(jobId string, update *api.MetricUpdate) error
UpdateMetrics sends a new metric set to the parameter server from the Jobs so they can be exposed to prometheus
Click to show internal directories.
Click to hide internal directories.