Splitting off Aurora task from Aurora Job since Update mechanism only needs task.

This commit is contained in:
Renan DelValle 2018-12-10 18:57:16 -08:00
parent b0c25e9013
commit 5836ede37b
No known key found for this signature in database
GPG key ID: C240AD6D6F443EC9
4 changed files with 312 additions and 178 deletions

View file

@ -677,12 +677,12 @@ func (c *Client) RestartJob(key *aurora.JobKey) error {
}
// Update all tasks under a job configuration. Currently gorealis doesn't support for canary deployments.
func (c *Client) StartJobUpdate(updateJob *UpdateJob, message string) (*aurora.StartJobUpdateResult_, error) {
func (c *Client) StartJobUpdate(updateJob *JobUpdate, message string) (*aurora.StartJobUpdateResult_, error) {
c.logger.DebugPrintf("StartJobUpdate Thrift Payload: %+v %v\n", updateJob, message)
resp, retryErr := c.thriftCallWithRetries(func() (*aurora.Response, error) {
return c.client.StartJobUpdate(nil, updateJob.req, message)
return c.client.StartJobUpdate(nil, updateJob.request, message)
})
if retryErr != nil {