def set_cleanliness_flags_for_all_domains(force_full=False):
    for domain in Domain.get_all_names():
        try:
            set_cleanliness_flags_for_domain(domain, force_full=force_full)
        except InvalidDomainError as e:
            notify_exception(None, unicode(e))
Updates cleanliness for all domains
dataset/ETHPy150Open dimagi/commcare-hq/corehq/ex-submodules/casexml/apps/phone/cleanliness.py/set_cleanliness_flags_for_all_domains