Skip to content
This repository was archived by the owner on Nov 1, 2023. It is now read-only.

Commit d066ff9

Browse files
committed
Merge branch 'bug_fix' into rewrite/unmanaged_node
2 parents 379553e + 8a127f6 commit d066ff9

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

src/ApiService/ApiService/Functions/AgentCanSchedule.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,7 @@ private async Async.Task<HttpResponseData> Post(HttpRequestData req) {
5656

5757
if (workStopped) {
5858
_log.Info($"Work stopped for: {canScheduleRequest.MachineId:Tag:MachineId} and {canScheduleRequest.TaskId:Tag:TaskId}");
59-
allowed = false;
60-
reason = "Work stopped";
59+
return await RequestHandling.Ok(req, new CanSchedule(Allowed: false, WorkStopped: workStopped, Reason: "Work stopped"));
6160
}
6261

6362
var scp = await _context.NodeOperations.AcquireScaleInProtection(node);

src/deny.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ yanked = "deny"
1717
ignore = [
1818
"RUSTSEC-2022-0048", # xml-rs is unmaintained
1919
"RUSTSEC-2021-0139", # ansi_term is unmaintained
20+
"RUSTSEC-2021-0145", # atty bug: we are unaffected (no custom allocator)
21+
]
2022
]
2123

2224
[bans]

src/deployment/deploy.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1237,7 +1237,7 @@ def expand_agent(f: str) -> List[str]:
12371237
"--name",
12381238
self.application_name,
12391239
"--resource-group",
1240-
self.application_name,
1240+
self.resource_group,
12411241
"--settings",
12421242
]
12431243
+ python_settings,
@@ -1254,7 +1254,7 @@ def expand_agent(f: str) -> List[str]:
12541254
"--name",
12551255
self.application_name + DOTNET_APPLICATION_SUFFIX,
12561256
"--resource-group",
1257-
self.application_name,
1257+
self.resource_group,
12581258
"--settings",
12591259
]
12601260
+ dotnet_settings,

0 commit comments

Comments
 (0)