feat(managed-job): add update job method

This commit is contained in:
2024-12-01 02:05:49 +03:30
parent ac8453bb57
commit fb646086b0
7 changed files with 29 additions and 6 deletions

View File

@@ -13,6 +13,7 @@ func (job ManagedJob) createSavepoint() error {
lc.Logger.Debug("[managed-job] [savepoint] no job id")
return ErrNoJobId
}
lc.Logger.Info("[managed-job] [savepoint] creating savepoint", zap.String("interval", job.def.Spec.SavepointInterval.String()))
resp, err := job.client.SavePoints(*job.state.JobId, "/flink-data/savepoints-2/", false)
if err != nil {
lc.Logger.Error("[managed-job] [savepoint] error in creating savepoint", zap.Error(err))