You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 764cc45
Browse filesBrowse the repository at this point in the historyBrowse files
white
authored and
white
committed
Add pool task cancel and graceful shutdown, refactor PythonEmbed delegation
- D2: Task cancel via CompletableFuture.cancel(true) - detects interrupt, marks instance dirty, auto-replaces contaminated instance
- D3: Graceful close() - waits for in-flight tasks before shutdown; close(0, SECONDS) preserves immediate forced shutdown
- CloseReason.CANCELLED added for onInstanceRemoved callbacks
- PythonEmbed.java: timeout-less methods delegate to timeout variants (eval, exec, stream, eval/exec with variables)
- PythonEmbedPool.java: extracted submitWithEmbed helper, reducing ~216 lines of boilerplate
- Added cancel and graceful-close tests
0 commit comments