Keep Gjallar health status stable during RUDP publish
This commit is contained in:
parent
f514a7d31e
commit
37707cbd4d
1 changed files with 7 additions and 3 deletions
|
|
@ -792,6 +792,7 @@ internal sealed class GjallarRenderer : IDisposable
|
|||
contract = config.IdunnHealthContract,
|
||||
status = idunnRudpPublishStatus,
|
||||
error = idunnRudpPublishError,
|
||||
inFlight = idunnRudpPublishInFlight,
|
||||
observedAtUtc = idunnRudpPublishObservedAt,
|
||||
},
|
||||
paintMs = Math.Round(paintMs, 2),
|
||||
|
|
@ -845,9 +846,12 @@ internal sealed class GjallarRenderer : IDisposable
|
|||
lastHealthPublishAttemptAt = observedAt;
|
||||
idunnRudpPublishEndpoint = config.IdunnRudpHealth;
|
||||
idunnRudpPublishObservedAt = health.ObservedAt;
|
||||
idunnRudpPublishStatus = "publishing";
|
||||
idunnRudpPublishError = "";
|
||||
}
|
||||
if (!string.Equals(idunnRudpPublishStatus, "published", StringComparison.Ordinal))
|
||||
{
|
||||
idunnRudpPublishStatus = "publishing";
|
||||
idunnRudpPublishError = "";
|
||||
}
|
||||
}
|
||||
|
||||
_ = Task.Run(() =>
|
||||
{
|
||||
|
|
|
|||
Reference in a new issue