Date of slack thread: 5/2/24
Anonymous: Hello! We’ve recently added the Statsig python SDK to our web app. We would like to be able to poll for updates to experiments and experiment configurations manually instead of relying on background jobs polling the Statsig server.
I’ve added a RedisDataStore
to our StatsigOptions
at initialization, and we’re able to use local_mode=True
to assign users to a group once the cache is populated. But what is the best way to manually populate the cache without initializing the SDK with local_mode=False
and letting it run in the background?
Anonymous: Digging a bit more, it seems like we may need to manually hit the <https://api.statsigcdn.com/v1/download_config_specs/>
endpoint. Does that seem correct?
Vijaye (Statsig): <@U01RAN2FKJP>
tore (statsig): If you want to use the data store to accomplish this, you’ll need to do a few things. You won’t need local mode to accomplish this
https://github.com/statsig-io/python-sdk/blob/main/statsig/interface_data_store.py#L14C9-L14C44