Update src/Runner.Worker/ContainerOperationProvider.cs

Co-authored-by: Tingluo Huang <tingluohuang@github.com>
This commit is contained in:
JoannaaKL
2022-09-15 09:31:09 +02:00
committed by GitHub
parent e03ad87776
commit 5b26a1e1ae

View File

@@ -428,7 +428,7 @@ namespace GitHub.Runner.Worker
}
}
private async Task<string> Healthcheck(IExecutionContext executionContext, ContainerInfo container)
private async Task<string> ContainerHealthcheck(IExecutionContext executionContext, ContainerInfo container)
{
string healthCheck = "--format=\"{{if .Config.Healthcheck}}{{print .State.Health.Status}}{{end}}\"";
string serviceHealth = (await _dockerManager.DockerInspect(context: executionContext, dockerObject: container.ContainerId, options: healthCheck)).FirstOrDefault();