Skip to content

Commit

Permalink
fix arch in pool manager
Browse files Browse the repository at this point in the history
  • Loading branch information
elasticroentgen committed Apr 15, 2024
1 parent 7b06755 commit f3a4861
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion PoolManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,13 @@ public async Task StartAsync(CancellationToken cancellationToken)
{
int existCt = existingRunners.Count(x => x.Size == pool.Size);
int missingCt = pool.NumRunners - existCt;

string arch = Program.Config.Sizes.FirstOrDefault(x => x.Name == pool.Size).Arch;

for (int i = 0; i < missingCt; i++)
{
// Create VM
string name = await _cc.CreateNewRunner("x64", pool.Size, runnerToken, org.OrgName);
string name = await _cc.CreateNewRunner(arch, pool.Size, runnerToken, org.OrgName);
_logger.LogInformation($"[{i+1}/{missingCt}] Created runner for {org.OrgName}: {name}");
}
}
Expand Down

0 comments on commit f3a4861

Please sign in to comment.