Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
TingluoHuang committed Nov 7, 2024
1 parent 896f513 commit f4385f5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
7 changes: 0 additions & 7 deletions src/Runner.Worker/JobExtension.cs
Original file line number Diff line number Diff line change
Expand Up @@ -830,13 +830,6 @@ private async Task CheckDiskSpaceAsync(IExecutionContext context, CancellationTo

private async Task CheckServiceConnectivityAsync(IExecutionContext context, CancellationToken token)
{
var foo = new ServiceConnectivityCheckInput() { IntervalInSecond = 30, RequestTimeoutInSecond = 30 };
foo.Endpoints.Add("pipelines", "https://pipelinesghubeus20.actions.githubusercontent.com/_apis/connectiondata");
foo.Endpoints.Add("broker", "https://broker.actions.githubusercontent.com/health");
foo.Endpoints.Add("results", "https://results-receiver.actions.githubusercontent.com/health");
var fooJson = StringUtil.ConvertToJson(foo);
context.Global.Variables.Set(WellKnownDistributedTaskVariables.RunnerServiceConnectivityTest, fooJson);

var connectionTest = context.Global.Variables.Get(WellKnownDistributedTaskVariables.RunnerServiceConnectivityTest);
if (string.IsNullOrEmpty(connectionTest))
{
Expand Down
2 changes: 1 addition & 1 deletion src/Sdk/DTWebApi/WebApi/ServiceConnectivityCheck.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public ServiceConnectivityCheckResult()
EndpointsResult = new Dictionary<string, List<string>>(StringComparer.OrdinalIgnoreCase);
}

[DataMember(Order = 1, EmitDefaultValue = false)]
[DataMember(Order = 1, EmitDefaultValue = true)]
public bool HasFailure { get; set; }

[DataMember(Order = 2, EmitDefaultValue = false)]
Expand Down

0 comments on commit f4385f5

Please sign in to comment.