Skip to content

Commit

Permalink
chore: add job health
Browse files Browse the repository at this point in the history
  • Loading branch information
yashmehrotra authored and moshloop committed Sep 11, 2024
1 parent d901758 commit 0481a7a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions chart/templates/topology.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,7 @@ spec:
'type': 'JobHistory',
'status': r.status == 'SUCCESS' ? 'healthy': 'unhealthy',
'status_reason': r.status == 'SUCCESS' ? '': r.details.toJSON(),
'health': r.error_count == 0 ? 'healthy': (r.success_count == 0 ? 'unhealthy' : 'warning'),
'properties': [
{'name': 'success_count', 'value': r.success_count, 'headline': true},
{'name': 'error_count', 'value': r.error_count, 'headline': true},
Expand Down

0 comments on commit 0481a7a

Please sign in to comment.