Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(framework) Allow clients to exit gracefully #3090

Merged
merged 54 commits into from
Jun 10, 2024
Merged

Conversation

charlesbvll
Copy link
Member

@charlesbvll charlesbvll commented Mar 10, 2024

Issue

Description

  • Currently we have to press Ctrl+C 2 times to exit the flower-client-app in some cases
  • The flower-client-app doesn't exit gracefully

Related issues/PRs

N/A

Proposal

Explanation

Catch the interrupt exception and stop the program gracefully.

Checklist

  • Implement proposed change
  • Update the changelog entry below
  • Make CI checks pass
  • Ping maintainers on Slack (channel #contributions)

Changelog entry

Any other comments?

N/A

@charlesbvll charlesbvll marked this pull request as ready for review March 10, 2024 19:52
jafermarq
jafermarq previously approved these changes May 28, 2024
Copy link
Contributor

@jafermarq jafermarq left a comment

Choose a reason for hiding this comment

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

works great! let's have a followup PR that calls delete_node() when processing a ctrl+c event?

jafermarq
jafermarq previously approved these changes May 30, 2024
@danieljanes danieljanes enabled auto-merge (squash) June 10, 2024 09:33
@danieljanes danieljanes disabled auto-merge June 10, 2024 09:33
@danieljanes danieljanes enabled auto-merge (squash) June 10, 2024 09:34
@danieljanes danieljanes merged commit e182983 into main Jun 10, 2024
29 checks passed
@danieljanes danieljanes deleted the better-client-exit branch June 10, 2024 09:34
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.

4 participants