Skip to content

Commit

Permalink
feat: terminate the job as well when fail to fetch log
Browse files Browse the repository at this point in the history
  • Loading branch information
deryrahman committed Sep 30, 2024
1 parent a5a458a commit aea3c6f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions max2max/internal/client/odps.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ func (c *odpsClient) ExecSQL(ctx context.Context, query string) error {
// generate log view
url, err := odps.NewLogView(c.client).GenerateLogView(taskIns, 1)
if err != nil {
err = e.Join(err, taskIns.Terminate())
return errors.WithStack(err)
}
c.logger.Info(fmt.Sprintf("log view: %s", url))
Expand Down

0 comments on commit aea3c6f

Please sign in to comment.