-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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(#11571): add health script for batch/CronJob #15272
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: AliGhotbizadeh <[email protected]>
Codecov ReportPatch and project coverage have no change.
Additional details and impacted files@@ Coverage Diff @@
## master #15272 +/- ##
=======================================
Coverage 49.87% 49.87%
=======================================
Files 263 263
Lines 45193 45193
=======================================
Hits 22538 22538
Misses 20437 20437
Partials 2218 2218 ☔ View full report in Codecov by Sentry. |
12316bf
to
5ddb613
Compare
Signed-off-by: Ali Ghotbizadeh <[email protected]>
Signed-off-by: Ali Ghotbizadeh <[email protected]>
Wondering if 'job is running' ( |
getting attempt to index a non-table object(nil) with key 'match' |
I understand what you mean, so I can set the app status to |
I think that's because the Lua standard libraries are disabled by default. I have faced that issue when I used this script as |
Perhaps an annotation with a duration as value would suffice? This duration defines after which period a |
I get an issue, where the Argo health check is faster than kubernetes status update. So even after successful job execution, for a second the application goes degraded and then back to healthy. |
I would also be interested in this feature going live without having to "hack" the behaviour for Cronjobs in the values file |
Fixes [ISSUE #11571]
Cronjob fails but doesn't cause argo app to show as unhealthy, so in an overview of apps we can't understand what apps need attention about their cronjobs.
I use cronjob status fields with the following algorithm:
active
field is setlastScheduleTime
is nulllastScheduleTime
andlastSuccessfulTime
are set and thelastSuccessfulTime
is newerlastScheduleTime
is set butlastSuccessfulTime
is null or it is olderChecklist: