Skip to content

Commit

Permalink
Merge pull request #689 from mcneel/AndyPayne/Compute-282
Browse files Browse the repository at this point in the history
fixes Compute-282
  • Loading branch information
andyopayne authored Nov 7, 2024
2 parents d1b139a + d7efd5f commit 29623f7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/rhino.compute/ComputeChildren.cs
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ static void LaunchCompute(Queue<Tuple<Process, int>> processQueue, bool waitUnti
}

var startInfo = new ProcessStartInfo(pathToCompute);
startInfo.EnvironmentVariables["ASPNETCORE_HOSTINGSTARTUPASSEMBLIES"] = ""; //required for debugging compute.geometry via Visual Studio
var rhinoProcess = Process.GetCurrentProcess();
Thread.CurrentThread.CurrentCulture = new CultureInfo("en-US");
string commandLineArgs = $"-port:{port} -childof:{rhinoProcess.Id}";
Expand Down
4 changes: 2 additions & 2 deletions src/rhino.compute/ReverseProxy.cs
Original file line number Diff line number Diff line change
Expand Up @@ -103,12 +103,12 @@ Task LaunchChildren(HttpRequest request, HttpResponse response)
int parentProcessId = System.Convert.ToInt32(request.Query["parent"]);
if (Program.IsParentRhinoProcess(parentProcessId))
{
for(int i=0; i<children; i++)
for (int i=0; i<children; i++)
{
ComputeChildren.LaunchCompute(false);
}
}
return null;
return Task.CompletedTask;
}

async Task AwaitInitTask()
Expand Down

0 comments on commit 29623f7

Please sign in to comment.