Skip to content

Debug: Add ShutdownWorker RPC timing logs#1422

Draft
rkannan82 wants to merge 13 commits intomainfrom
kannan/shutdown-rpc-logging
Draft

Debug: Add ShutdownWorker RPC timing logs#1422
rkannan82 wants to merge 13 commits intomainfrom
kannan/shutdown-rpc-logging

Conversation

@rkannan82
Copy link
Copy Markdown

What

Temporary PR to diagnose ShutdownWorker timing. Adds error-level logs in sdk-core to trace when the ShutdownWorker RPC is sent and when it returns.

Why

Need to determine whether TEMP_FIX: poll cancelled due to shutdown is caused by racy in-flight polls or slow ShutdownWorker RPC completion. See #1419 for context.

How did you test it?

CI will produce the evidence — look for shutdown_worker rpc: sending request and shutdown_worker rpc: returned successfully timestamps relative to TEMP_FIX logs.

🤖 Generated with Claude Code

@CLAassistant
Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
1 out of 2 committers have signed the CLA.

✅ yuandrew
❌ rkannan82
You have signed the CLA already but the status is still pending? Let us recheck it.

@rkannan82 rkannan82 force-pushed the kannan/shutdown-rpc-logging branch 2 times, most recently from 99d4db3 to 2f9a578 Compare April 7, 2026 21:52
Add print statements with timestamps at key shutdown points
(initiate_shutdown, poller drain, finalize_shutdown) to correlate
with TEMP_FIX poll cancellation timestamps and determine if the
race is slow ShutdownWorker RPC or in-flight polls.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@rkannan82 rkannan82 force-pushed the kannan/shutdown-rpc-logging branch from 2f9a578 to 2eb7184 Compare April 7, 2026 22:06
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.

3 participants