https://www.growthbook.io/ logo
#announcements
Title
# announcements
d

dry-eye-65136

04/10/2023, 6:23 PM
Hello Team , a quick question regarding growthbook python SDK , should i assume the tracking callback if called on the same thread as when i check if feature is on , in other words in case of running an a/b experiment , should i assume that after calling
isOn
function , the tracking callback function should be already executed ?
f

future-teacher-7046

04/10/2023, 6:33 PM
Yes, that is how it is implemented today. In the future we might change the tracking callback to happen in a separate thread, so I wouldn't necessarily rely on this behavior. Do you have a specific use case you are trying to solve with this?
d

dry-eye-65136

04/10/2023, 7:37 PM
Yes specifically I want to call a python function that tells me directly if user is within the exposed users and also within with variant
f

future-teacher-7046

04/10/2023, 7:52 PM
Instead of the
isOn
method, there is an
evalFeature
method you can use that returns both the value (true or false) plus info about the experiment and variation. https://docs.growthbook.io/lib/python#using-features
d

dry-eye-65136

04/10/2023, 7:56 PM
aha that's super helpful Jeremy ! exactly what i need , thanks a lot
9 Views