-
Notifications
You must be signed in to change notification settings - Fork 842
fixes #1106 - Return empty HealthCheck result instead of None, when no r... #1107
Conversation
…o results are present
Doesn't this change the semantics of the "alive" value of the health check result? When a task has not received any health result with this patch, the /apps endpoint will return a health check result with alive=true, won't it? |
In other words, we either have the Option[Health] type or we have to change the type of alive from Boolean to Option[Boolean]. |
Related to #940 too. |
@sttts You're right. Closing this until I find a better solution. |
Hm... Actually if it doesn't have a |
Only alive is misleading. In the json we can set alive=null, in the code alive: Option[Boolean]. |
|
Got what you mean. alive=false is better than healthy=false. |
…he HealthCheckResult rather than its existence
What is the opinion here? My feeling is that the new semantics of alive=false + lastFailure=null is a bit complicated, but makes sense on the second thought. |
@ConnorDoyle Could you please review? |
fixes #1106 - Return empty HealthCheck result instead of None, when no r...
...esults are present