Skip to content

Conversation

@IrisIris
Copy link
Collaborator

@IrisIris IrisIris commented Jul 1, 2022

No description provided.

@IrisIris IrisIris force-pushed the feature/timeout-job-redo branch from cfb1b28 to c0b036c Compare July 4, 2022 06:50
Copy link
Member

@ringtail ringtail left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add some unit tests.

log.Errorf("Failed to run time out job %s due to failed to get cronHPA %s in %s namespace,err: %v", job.Name(), hpa.Name, hpa.Namespace, err)
continue
}
cm.eventRecorder.Event(instance, v1.EventTypeWarning, "OutOfDate", fmt.Sprintf("to run out of date job: %s", job.Name()))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

to run out of date job -》 rerun out of date job

}
cm.eventRecorder.Event(instance, v1.EventTypeWarning, "OutOfDate", fmt.Sprintf("to run out of date job: %s", job.Name()))
if msg, reRunErr := job.Run(); reRunErr != nil {
log.Errorf("failed to re run out of date job %s, msg:%s, err %v", job.Name(), msg, reRunErr)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

re run -》rerun

@IrisIris IrisIris force-pushed the feature/timeout-job-redo branch from c0b036c to 0fe788c Compare July 6, 2022 09:33
@ringtail ringtail merged commit b8cd52c into AliyunContainerService:master Jul 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants