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

Add support for stateful clients #2341

Closed
wants to merge 24 commits into from
Closed

Conversation

jafermarq
Copy link
Contributor

This PR introduces simple (but sufficient for most cases) support for stateful clients. All clients are stateful now (with state being a simple dataclass with nothing but the client-id). The state is transparently injected each time a client is instantiated and the result is retrieved before the client object is destroyed (recall in simulation clients are ephemeral).

This PR assumes #2331 is merged. it is also compatible with the ideas in #2303.

This PR replaces the contents of #2148 and #2160 so they should be closed/deleted

@jafermarq jafermarq changed the base branch from main to decouple_clientfn_and_job September 11, 2023 17:31
@jafermarq jafermarq changed the base branch from decouple_clientfn_and_job to main September 12, 2023 12:58
@jafermarq
Copy link
Contributor Author

Let's first work on and merge #2389, where the definition of ClientState and WorkloadState is introduced.

@jafermarq jafermarq added the enhancement New feature or request label Sep 18, 2023
@jafermarq
Copy link
Contributor Author

Closed since #2632, #2643, #2645 and #2686 added the functionality here describe (but better)

@jafermarq jafermarq closed this Dec 6, 2023
@leolavaur
Copy link

Hello there, and thanks for the work on supporting stateful clients. I see this PR is closed because the feature is supposed to be supported via the other mentioned issues. However, I'm not sure to understand how. Are those released in Flower 1.6? Is there any documentation on using stateful clients that I missed? Thanks again.

@jafermarq jafermarq deleted the stateful_clients_here_we_go branch January 29, 2024 11:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants