Skip to content

Do not always wait for sessions close#651

Merged
cyc60 merged 1 commit intomasterfrom
close-clients
Feb 3, 2026
Merged

Do not always wait for sessions close#651
cyc60 merged 1 commit intomasterfrom
close-clients

Conversation

@cyc60
Copy link
Copy Markdown
Contributor

@cyc60 cyc60 commented Feb 3, 2026

No description provided.

Signed-off-by: cyc60 <avsysoev60@gmail.com>
Copilot AI review requested due to automatic review settings February 3, 2026 08:53
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR modifies the client shutdown behavior to make waiting for session closure optional rather than mandatory. The change introduces a parameter to control whether the application waits for web3 evicted sessions to close during shutdown, avoiding unnecessary delays in most cases.

Changes:

  • Added optional wait_sessions_close parameter to close_clients() function with a default value of False
  • Updated the shutdown logic to conditionally wait for sessions based on the parameter
  • Explicitly enabled session waiting in the base startup command's cleanup flow

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
src/common/clients.py Added wait_sessions_close parameter to make session closure waiting optional during client shutdown
src/commands/start/base.py Enabled session waiting in the base command's cleanup to maintain existing behavior for this specific use case

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@cyc60 cyc60 merged commit 63fbe51 into master Feb 3, 2026
7 checks passed
@cyc60 cyc60 deleted the close-clients branch February 3, 2026 09:05
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