feat(manager): make check status from flink batch
This commit is contained in:
@@ -41,11 +41,12 @@ func (crd Crd) SetJobStatus(jobUid types.UID, status string) error {
|
||||
)
|
||||
return err
|
||||
}
|
||||
patched, err := convertFromUnstructured(unstructuredJob)
|
||||
_, err = convertFromUnstructured(unstructuredJob)
|
||||
if err != nil {
|
||||
lc.Logger.Error("[crd] [status] error in structure unstructured patched", zap.Error(err))
|
||||
} else {
|
||||
lc.Logger.Debug("[crd] [status] patched")
|
||||
}
|
||||
lc.Logger.Debug("[crd] [status] set status", zap.Any("statusUpdateObj", patched))
|
||||
if err != nil {
|
||||
lc.Logger.Error("[crd] [status] ", zap.Error(err))
|
||||
return err
|
||||
|
||||
Reference in New Issue
Block a user