mirror of
https://github.com/actions/runner.git
synced 2026-01-01 23:23:58 +08:00
Rename Healthcheck back to ContainerHealthcheck
This commit is contained in:
@@ -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).
|
||||||
|
|||||||
Reference in New Issue
Block a user