chore(main): release 2.4.0 - #131
Merged
Merged
Conversation
github-actions
Bot
force-pushed
the
release-please--branches--main
branch
from
August 18, 2026 23:19
57f6a84 to
f0cd3e9
Compare
github-actions
Bot
force-pushed
the
release-please--branches--main
branch
from
August 18, 2026 23:27
f0cd3e9 to
eaa48f5
Compare
madhuchavva
approved these changes
Aug 19, 2026
Contributor
Author
|
🤖 Release is at https://github.com/growthbook/growthbook-python/releases/tag/v2.4.0 🌻 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🤖 I have created a release beep boop
2.4.0 (2026-08-18)
Features
GrowthBookClient(#128, #129):AbstractAsyncStickyBucketServicebase class withasyncget_assignments/save_assignments; overrideget_all_assignmentsto batch all lookups for a user into one round trip (e.g. a single RedisMGET). Existing synchronousAbstractStickyBucketServiceimplementations keep working with both clients — the async client offloads their blocking calls to a thread pool.UserContext, matching the JavaScript SDK's multi-user client; concurrent evaluations for the same user share a single cancellation-safe in-flight lookup.GrowthBookClient.flush_sticky_bucket_saves()waits for all pending writes to persist (useful for serverless and short-lived processes);close()flushes automatically.Options(sticky_bucket_cache_ttl=..., sticky_bucket_cache_size=...); disabled by default.GrowthBookClient(#128, #129):on_experiment_viewed,on_feature_usage, andsubscribe()callbacks may now be coroutines. They are scheduled on the event loop without blocking evaluation, and a tracking callback that raises is retried on the next evaluation of the same experiment/user pair.customFieldsproperty toExperiment(#125)Performance Improvements
GrowthBookClient: feature updates now swap an immutable snapshot instead of taking a per-evaluation lock (#129)stop_refresh()no longer blocks the event loop during shutdown (#128)tests/scripts/benchmark_async_client.py: 100 concurrent requests, 1 ms simulated service latency), distinct-user throughput with a network-backed sticky bucket service goes from ~350 evaluations/second with multi-second event-loop stalls on 2.3.x to ~20,000 evaluations/second with sub-2 ms loop lag.Bug Fixes
GrowthBookclass now raisesValueErrorat construction if given an async sticky bucket service, instead of failing silently at runtime (#128)Tests and CI
Compatibility notes
GrowthBookClientare now eventual rather than synchronous with evaluation. Read-your-writes is preserved in-process; short-lived processes shouldawait client.flush_sticky_bucket_saves()(orclose()) before exit to guarantee persistence.GrowthBookClientnow fetches sticky bucket assignments per evaluation instead of caching them for the lifetime of the process. This matches the JavaScript SDK and picks up cross-process assignment changes promptly, but increases service lookups; opt into bounded caching withsticky_bucket_cache_ttl/sticky_bucket_cache_sizeif needed.This PR was generated with Release Please. See documentation.