Skip to content

Commit 0ffcb79

Browse files
committed
Debug dotnet new timeouts
- hang long enough to grab a dump This will _not_ help us understand later inability to acquire `DotNetNewLock` - guessing but this might have something to do w/ the 20 minute default timeout for that acquisition
1 parent e68043b commit 0ffcb79

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/ProjectTemplates/Shared/Project.cs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,19 @@ internal async Task<ProcessResult> RunDotNetNewAsync(
102102
try
103103
{
104104
Output.WriteLine("Acquired DotNetNewLock");
105+
105106
// Temporary while investigating why this process occasionally never runs or exits on Debian 9
106107
environmentVariables.Add("COREHOST_TRACE", "1");
107-
using var execution = ProcessEx.Run(Output, AppContext.BaseDirectory, DotNetMuxer.MuxerPathOrDefault(), argString, environmentVariables);
108+
109+
using var execution = ProcessEx.Run(
110+
Output,
111+
AppContext.BaseDirectory,
112+
DotNetMuxer.MuxerPathOrDefault(),
113+
argString,
114+
environmentVariables,
115+
TimeSpan.FromHours(5));
108116
await execution.Exited;
117+
109118
return new ProcessResult(execution);
110119
}
111120
finally

0 commit comments

Comments
 (0)