Commit 01d7f0a
committed
Fix action hang: Add hard timeout and explicit process.exit()
Root cause: Action would hang indefinitely when:
- Agent request timed out but process didn't exit (event loop still active)
- Gateway process or WebSocket kept Node.js alive
- No hard timeout on entire action execution
Changes:
1. Added 10-minute hard timeout wrapper around run() function
2. Added explicit process.exit(0/1) to force termination
3. Moved cleanup (client disconnect, stopGateway) to finally block
4. Increased agent request timeout from 5min to 8min (within 10min limit)
5. Ensured gateway process is always killed on timeout
This ensures the action ALWAYS exits within 10 minutes, even if:
- The LLM API returns 429 rate limit errors
- The agent request hangs or times out
- The WebSocket connection doesn't close properly
- The gateway process hangs
Fixes issue #91 parent 11e75cd commit 01d7f0a
File tree
264 files changed
+500406
-23
lines changed- dist
- node_modules
- .bin
- @esbuild/darwin-arm64
- bin
- @types
- node
- assert
- compatibility
- dns
- fs
- readline
- stream
- timers
- ts5.6
- web-globals
- ws
- esbuild
- bin
- lib
- typescript
- bin
- lib
- cs
- de
- es
- fr
- it
- ja
- ko
- pl
- pt-br
- ru
- tr
- zh-cn
- zh-tw
- undici-types
- src
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
264 files changed
+500406
-23
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65942 | 65942 | | |
65943 | 65943 | | |
65944 | 65944 | | |
65945 | | - | |
| 65945 | + | |
65946 | 65946 | | |
65947 | | - | |
| 65947 | + | |
65948 | 65948 | | |
65949 | 65949 | | |
65950 | | - | |
| 65950 | + | |
65951 | 65951 | | |
65952 | 65952 | | |
65953 | 65953 | | |
| |||
72304 | 72304 | | |
72305 | 72305 | | |
72306 | 72306 | | |
| 72307 | + | |
| 72308 | + | |
| 72309 | + | |
| 72310 | + | |
| 72311 | + | |
| 72312 | + | |
| 72313 | + | |
| 72314 | + | |
| 72315 | + | |
| 72316 | + | |
| 72317 | + | |
| 72318 | + | |
| 72319 | + | |
| 72320 | + | |
| 72321 | + | |
| 72322 | + | |
| 72323 | + | |
| 72324 | + | |
| 72325 | + | |
| 72326 | + | |
72307 | 72327 | | |
72308 | 72328 | | |
72309 | 72329 | | |
| |||
72775 | 72795 | | |
72776 | 72796 | | |
72777 | 72797 | | |
72778 | | - | |
| 72798 | + | |
72779 | 72799 | | |
72780 | | - | |
| 72800 | + | |
72781 | 72801 | | |
72782 | 72802 | | |
72783 | 72803 | | |
72784 | 72804 | | |
72785 | 72805 | | |
72786 | | - | |
| 72806 | + | |
72787 | 72807 | | |
72788 | 72808 | | |
72789 | 72809 | | |
| |||
73140 | 73160 | | |
73141 | 73161 | | |
73142 | 73162 | | |
73143 | | - | |
73144 | | - | |
73145 | 73163 | | |
73146 | 73164 | | |
73147 | 73165 | | |
| |||
73165 | 73183 | | |
73166 | 73184 | | |
73167 | 73185 | | |
73168 | | - | |
73169 | 73186 | | |
73170 | 73187 | | |
73171 | 73188 | | |
73172 | | - | |
73173 | | - | |
73174 | | - | |
73175 | 73189 | | |
73176 | 73190 | | |
73177 | 73191 | | |
73178 | 73192 | | |
73179 | 73193 | | |
73180 | 73194 | | |
| 73195 | + | |
| 73196 | + | |
| 73197 | + | |
| 73198 | + | |
| 73199 | + | |
| 73200 | + | |
| 73201 | + | |
| 73202 | + | |
| 73203 | + | |
| 73204 | + | |
| 73205 | + | |
| 73206 | + | |
| 73207 | + | |
| 73208 | + | |
73181 | 73209 | | |
73182 | 73210 | | |
73183 | | - | |
| 73211 | + | |
| 73212 | + | |
| 73213 | + | |
| 73214 | + | |
| 73215 | + | |
| 73216 | + | |
| 73217 | + | |
| 73218 | + | |
| 73219 | + | |
| 73220 | + | |
| 73221 | + | |
| 73222 | + | |
| 73223 | + | |
| 73224 | + | |
| 73225 | + | |
| 73226 | + | |
| 73227 | + | |
73184 | 73228 | | |
73185 | 73229 | | |
73186 | 73230 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments