Commit 565daae
Fix benchmark pipeline hang: force exit after report generation
The benchmark-report command hangs indefinitely after BenchmarkDotNet
and report generation complete because the Microsoft.Agents.AI hosting
framework leaves non-daemon threads running that prevent the process
from exiting. On self-hosted agents with no job timeout (default 0),
this causes the pipeline run to hang until manually cancelled.
Two fixes:
- Add Environment.Exit(0) after benchmark-report completes to kill
lingering hosting threads
- Add timeoutInMinutes: 45 to the benchmark job as a safety net
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 8585ba4 commit 565daae
File tree
2 files changed
+6
-2
lines changed- src/BitNetSharp.App
2 files changed
+6
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | | - | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
79 | 78 | | |
80 | 79 | | |
81 | 80 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
30 | 35 | | |
31 | 36 | | |
32 | 37 | | |
| |||
0 commit comments