@task(queue='background_queue')
def delete_duplicates_for_cases(case_ids):
    CaseDuplicate.bulk_remove_unique_cases(case_ids)
    CaseDuplicate.remove_duplicates_for_case_ids(case_ids)
@task(queue='background_queue')
def delete_duplicates_for_cases(case_ids):
    CaseDuplicate.bulk_remove_unique_cases(case_ids)
    CaseDuplicate.remove_duplicates_for_case_ids(case_ids)