feat: handle job run error and change life-cycle status

This commit is contained in:
2024-12-18 10:08:30 +03:30
parent 03fe9910a3
commit 5e3f093f08
6 changed files with 15 additions and 5 deletions

View File

@@ -14,6 +14,7 @@ import (
func (crd *Crd) Patch(jobUid types.UID, patchData map[string]interface{}) error {
job := GetJob(jobUid)
pkg.Logger.Debug("[patch-job]", zap.Any("jobUid", jobUid))
patchBytes, err := json.Marshal(patchData)
if err != nil {