File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -413,15 +413,7 @@ def get_variation(
413413 - 'error': Boolean indicating if an error occurred during the decision process.
414414 """
415415 user_id = user_context .user_id
416-
417- if experiment .cmab :
418- # CMAB experiments are excluded from user profile storage to allow dynamic decision-making
419- ignore_user_profile = True
420- self .logger .debug (
421- f'Skipping user profile service for CMAB experiment "{ experiment .key } ". '
422- f'CMAB decisions are dynamic and not stored for sticky bucketing.'
423- )
424- elif options :
416+ if options :
425417 ignore_user_profile = OptimizelyDecideOption .IGNORE_USER_PROFILE_SERVICE in options
426418 else :
427419 ignore_user_profile = False
@@ -523,6 +515,11 @@ def get_variation(
523515 'reasons' : decide_reasons ,
524516 'variation' : None
525517 }
518+ ignore_user_profile = True
519+ self .logger .debug (
520+ f'Skipping user profile service for CMAB experiment "{ experiment .key } ". '
521+ f'CMAB decisions are dynamic and not stored for sticky bucketing.'
522+ )
526523 variation_id = cmab_decision ['variation_id' ] if cmab_decision else None
527524 cmab_uuid = cmab_decision ['cmab_uuid' ] if cmab_decision else None
528525 variation = project_config .get_variation_from_id (experiment_key = experiment .key ,
You can’t perform that action at this time.
0 commit comments