Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: cron job health check #20

Merged
merged 2 commits into from
May 2, 2024
Merged

fix: cron job health check #20

merged 2 commits into from
May 2, 2024

Conversation

adityathebe
Copy link
Member

@adityathebe adityathebe requested a review from moshloop May 1, 2024 17:20
@moshloop
Copy link
Member

moshloop commented May 1, 2024

Can we also update the logic to include add activeDeadlineSeconds lastScheduleTime to give current jobs a chance to run

@moshloop moshloop merged commit d9be0f3 into main May 2, 2024
4 checks passed
@adityathebe adityathebe deleted the fix/cronjob-health-check branch May 2, 2024 07:50
Message: "Last run failed, last successful run was" + job.Status.LastSuccessfulTime.Format("2006-01-02 15:04:05 -0700"),
}, nil
}

if len(job.Status.Active) > 0 {
return &HealthStatus{
Ready: true,
Copy link
Member

Choose a reason for hiding this comment

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

@adityathebe - ready should be false

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.

unsupported CronJob GVK: batch/v1, Kind=CronJob
2 participants