summaryrefslogtreecommitdiff
path: root/tools/edit_monitor/utils.py
AgeCommit message (Collapse)Author
2024-11-05Rollout edit monitor to 10% users Zhuoyao Zhang
Simplified the logic in whether to enable edit monitor by passing the rollout percentage directly instead of reading from a env variable as now we do not rely on any env var to control the rollout precentage. Test: atest edit_monitor_utils_test Bug: 365617369 Change-Id: Ia04d5737dafe2c9715a02f84eb5d75ba6119ceb4
2024-11-01Start edit monitor only when the feature is enabled Zhuoyao Zhang
Check the env variable to determine whether the edit monitor feature is enabled and only start the edit monitor if it is enabled, otherwise exit directly. This helps to roll out the feature gradually. Test: atest edit_monitor_utils_test atest daemon_manager_test Bug: 365617369 Change-Id: I03fb494e1f62712efaf0bb05de8859e0118702bf