代码执行 SOP
适用:GA 需要执行用户代码、运行脚本、处理数据的场景。支持 Python 3.x、Shell、Bash。
Python 执行
基础:subprocess.run(["python3", "-c", "code"]) 常用库:pandas/requests/json/re/pathlib/datetime
Shell 执行
ls -la | grep xxx | sort ps aux | grep python nohup python script.py &
Git 操作
git clone/pull/push gh pr create/merge
API 调试
curl GET/POST,Python requests
调试排错
pdb断点、logging、tail -f
GA 执行清单
- [ ] 输入校验
- [ ] timeout设置
- [ ] 敏感信息不硬编码
- [ ] 错误捕获