Rename Healthcheck back to ContainerHealthcheck

This commit is contained in:
JoannaaKL
2022-09-15 07:58:33 +00:00
parent a9fa7f83e9
commit b15525a8ca

View File

@@ -108,7 +108,7 @@ namespace GitHub.Runner.Worker
var unhealthyContainers = new List<ContainerInfo>(); var unhealthyContainers = new List<ContainerInfo>();
foreach (var container in containers.Where(c => !c.IsJobContainer)) foreach (var container in containers.Where(c => !c.IsJobContainer))
{ {
var healthcheck = await Healthcheck(executionContext, container); var healthcheck = await ContainerHealthcheck(executionContext, container);
if (!string.Equals(healthcheck, "healthy", StringComparison.OrdinalIgnoreCase)) if (!string.Equals(healthcheck, "healthy", StringComparison.OrdinalIgnoreCase))
{ {
@@ -328,7 +328,7 @@ namespace GitHub.Runner.Worker
{ {
if (!container.IsJobContainer && !container.FailedInitialization) if (!container.IsJobContainer && !container.FailedInitialization)
{ {
var healthcheck = await Healthcheck(executionContext, container); var healthcheck = await ContainerHealthcheck(executionContext, container);
if (string.Equals(healthcheck, "healthy", StringComparison.OrdinalIgnoreCase)) if (string.Equals(healthcheck, "healthy", StringComparison.OrdinalIgnoreCase))
{ {
// Print logs for service container jobs (not the "action" job itself b/c that's already logged). // Print logs for service container jobs (not the "action" job itself b/c that's already logged).