Skip to content

Commit

Permalink
Hotfix to fix health messaging
Browse files Browse the repository at this point in the history
  • Loading branch information
johnml1135 committed Aug 2, 2024
1 parent af90cbc commit 8ed738f
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 2 deletions.
26 changes: 25 additions & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,28 @@
"/app": "${workspaceFolder}"
},
},
{
"name": "Machine Engine Docker",
"type": "docker",
"containerName": "machine-engine-cntr",
"request": "attach",
"platform": "netCore",
"processName": "Serval.Machine.EngineServer",
"sourceFileMap": {
"/app": "${workspaceFolder}"
},
},
{
"name": "Machine Job Docker",
"type": "docker",
"containerName": "machine-job-cntr",
"request": "attach",
"platform": "netCore",
"processName": "Serval.Machine.JobServer",
"sourceFileMap": {
"/app": "${workspaceFolder}"
},
},
{
"name": "Launch Serval",
"type": "coreclr",
Expand Down Expand Up @@ -90,7 +112,9 @@
"justMyCode": false,
"configurations": [
"ServalApi Docker",
"Echo Docker"
"Echo Docker",
"Machine Engine Docker",
"Machine Job Docker"
]
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public async Task<HealthCheckResult> CheckHealthAsync(
var request = new ListObjectsV2Request
{
BucketName = new Uri(_options.Value.Uri).Host,
Prefix = new Uri(_options.Value.Uri).AbsolutePath + "/models/",
Prefix = new Uri(_options.Value.Uri).AbsolutePath.TrimStart('/'),
MaxKeys = 1,
Delimiter = ""
};
Expand Down

0 comments on commit 8ed738f

Please sign in to comment.