Hi everyone! I'm building a feature that enables o...
# experimentation
s
Hi everyone! I'm building a feature that enables our users to create and manage experiments on their resources. Currently, the experiment flow is missing the ability to stop an experiment and specify the winning variation. I couldn’t find this endpoint in the API docs, so if anyone knows how to perform this action through the API, I’d be grateful for the help! Additionally, how long does it usually take for the experiment results to become available or updated? Thank you!
f
For the second part, the results are updated every 6 hours by default- but you can adjust this (or manually trigger)
you can stop an experiment by changing it's status: https://docs.growthbook.io/api#tag/experiments/operation/updateExperiment
and setting a phase end date
if you want to set a variant to 100%, you'll want to adjust the rules for that feature
s
Thanks @fresh-football-47124 for your fast reaching! how can I adjust the update time interval (is it done per experiment or metric or project?) or trigger it manually throw the api?
f
You can manually trigger an update- or the setting is in the settings -> general
s
Hi @fresh-football-47124, I've tried setting the Cron schedule to run every 5 or 10 minutes, but it doesn't seem to work. Is there a minimum interval required for it to function properly? Also, I have another question: Is it possible to set the length of an experiment in days so that it stops automatically and selects the winner based on the goal metric?