Commit Graph

8 Commits

Author SHA1 Message Date
copilot-swe-agent[bot]
5badb9df39 Use consistent signal name resolution across all files
- Use signal.Signals(signum).name consistently in both api_server.py files
- Add fallback for unknown signals with Signal(n) format
- This ensures accurate signal name reporting in logs

Co-authored-by: Jiang-Jia-Jun <163579578+Jiang-Jia-Jun@users.noreply.github.com>
2025-12-23 12:16:43 +00:00
copilot-swe-agent[bot]
9e4eb339b8 Address code review feedback
- Translate Chinese comments to English for consistency
- Add subprocess import to api_server.py for TimeoutExpired handling
- Improve signal name detection in worker_process.py using signal.Signals
- Add better docstring comments for signal handlers and cleanup functions

Co-authored-by: Jiang-Jia-Jun <163579578+Jiang-Jia-Jun@users.noreply.github.com>
2025-12-23 12:15:24 +00:00
copilot-swe-agent[bot]
cd62cc2df9 Improve error handling in cleanup functions
- Add check for already terminated processes before attempting cleanup
- Add ProcessLookupError handling for race conditions
- Add success logging for better debugging
- Check if cache manager processes are alive before terminating

Co-authored-by: Jiang-Jia-Jun <163579578+Jiang-Jia-Jun@users.noreply.github.com>
2025-12-23 12:13:11 +00:00
copilot-swe-agent[bot]
e09d6363d3 Add signal handlers for graceful process termination
- Added SIGINT/SIGTERM signal handlers in api_server.py (both OpenAI and simple versions)
- Added cleanup_processes() function to properly terminate worker processes
- Enhanced StandaloneApplication with worker exit hooks and cleanup
- Added signal handling in worker_process.py for graceful worker shutdown
- Added shutdown_event to coordinate graceful shutdown across threads
- Improved worker monitor to respect shutdown event

Co-authored-by: Jiang-Jia-Jun <163579578+Jiang-Jia-Jun@users.noreply.github.com>
2025-12-23 12:10:20 +00:00
kevin
67298cf4c0 add error traceback info (#3419)
Some checks failed
Deploy GitHub Pages / deploy (push) Has been cancelled
* add error traceback info

* update error msg

* update code

---------

Co-authored-by: Jiang-Jia-Jun <163579578+Jiang-Jia-Jun@users.noreply.github.com>
2025-08-19 19:32:04 +08:00
Zero Rains
25698d56d1 polish code with new pre-commit rule (#2923) 2025-07-19 23:19:27 +08:00
Jiang-Jia-Jun
92c2cfa2e7 Sync v2.0 version of code to github repo 2025-06-29 23:29:37 +00:00
jiangjiajun
684703fd72 [LLM] First commit the llm deployment code 2025-06-09 19:20:15 +08:00