Skip to content

Conversation

@HellowVirgil
Copy link
Collaborator

Description

Please include a summary of the changes and the motivation behind them. Also, include any relevant context or links to related issues.

Type of Change

Please mark the type of change:

  • Bug fix
  • New feature
  • Documentation update
  • Code refactoring
  • Other (please describe):

Related Issues

Please list any issues related to this pull request (e.g., Fixes #123, Closes #456).

Testing

Please describe the tests that were performed to verify your changes. Include details about the testing framework, if applicable.

  • Unit tests
  • Integration tests
  • Manual testing

Checklist

  • My code follows the project’s coding style.
  • I have updated the documentation as necessary.
  • I have added tests to cover my changes.
  • All new and existing tests pass.
  • My changes require a change to the documentation.

Additional Notes

  1. run 方法被调用时,前端立即发起了 requestExecute 。
  2. 紧接着,调用了 saveNotebookContent() ,这会向 Jupyter Server 发送一个 PUT /api/contents/... 请求。
  3. Jupyter Server 收到这个 PUT 请求后,会执行保存操作。在某些 Jupyter Server 的配置或版本中,如果在 Kernel 正在繁忙(Busy)或刚刚接收到执行请求时频繁触发保存,可能会导致 文件系统锁冲突 或者 Kernel 进程状态异常 。导致 Server 认为文件已变更并试图重启 Kernel(Auto-restart),或者因为并发操作导致了 Server 内部错误进而杀死了 Kernel。

移除在 run 方法的同步路径中直接调用 saveNotebookContent 。

通过直接赋值新的元数据对象来触发响应式更新,替代手动调用保存方法。
@HellowVirgil HellowVirgil changed the base branch from main to feat/tracker-back January 27, 2026 04:58
@HellowVirgil HellowVirgil merged commit a2f1062 into apt-oss:feat/tracker-back Jan 27, 2026
1 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant