diff --git a/workflow/cron/controller.go b/workflow/cron/controller.go index 106bc33e588d..c1ae1de538d2 100644 --- a/workflow/cron/controller.go +++ b/workflow/cron/controller.go @@ -179,6 +179,7 @@ func (cc *Controller) processNextCronItem(ctx context.Context) bool { err = cronWorkflowOperationCtx.validateCronWorkflow(ctx) if err != nil { + cc.eventRecorderManager.Get(un.GetNamespace()).Event(un, apiv1.EventTypeWarning, "Invalid", err.Error()) logCtx.WithError(err).Error("invalid cron workflow") return true }