Skip to content

Commit

Permalink
small fix - removed Canary node poll from status
Browse files Browse the repository at this point in the history
  • Loading branch information
degenddy committed Jan 5, 2023
1 parent aacb3e5 commit 40f9b0f
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/api/render-status.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,6 @@ function getStatusText(snapshot: StateSnapshot) {
res.push(`RefBlock = ${snapshot.CurrentRefBlock}`);
res.push(`TotalEventsProcessed = ${snapshot.EventsStats.TotalEventsProcessed}`);
res.push(`committee size = ${snapshot.CurrentCommittee.length}`);
res.push(`stable node = ${snapshot.CurrentImageVersions['main']['node']}\n`);
return res.join(', ');
}

Expand All @@ -145,12 +144,7 @@ function getErrorText(snapshot: StateSnapshot) {
}
}
}
// only go over images that we really care if the canary version is found or not
for (const imageName of ['node']) {
const polledAgo = now - (snapshot.CurrentImageVersionsUpdater['canary'][imageName]?.LastPollTime ?? 0);
if (polledAgo > DOCKER_HUB_POLL_ALLOWED_DELAY) {
res.push(`Canary version poll for ${imageName} is too old (${polledAgo} sec ago).`);
}
}

return res.join(' ');

}

0 comments on commit 40f9b0f

Please sign in to comment.