🌐 AI搜索 & 代理 主页
Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Don't fail post start-proxy action if killing the proxy process fails
Otherwise logs won't get uploaded as artifact, even in debug mode
  • Loading branch information
mbg committed Apr 25, 2025
commit b24bd4a46fc1ecd4850af35b3524fbca455d2ed6
7 changes: 6 additions & 1 deletion lib/start-proxy-action-post.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/start-proxy-action-post.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion src/start-proxy-action-post.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,11 @@ async function runWrapper() {
// Kill the running proxy
const pid = core.getState("proxy-process-pid");
if (pid) {
process.kill(Number(pid));
try {
process.kill(Number(pid));
} catch (error) {
logger.error(`Failed to kill proxy process: ${getErrorMessage(error)}`);
}
}

const config = await configUtils.getConfig(
Expand Down
Loading