def METHOD_NAME(self, domain, request_user_id, sync_user_id,
                                 clear_data=False, task_cutoff_hour=None):
    if task_cutoff_hour and datetime.utcnow().hour >= task_cutoff_hour:
        return
    request_user, as_username = get_prime_restore_user_params(request_user_id, sync_user_id)
    metric_tags = {"domain": domain}
    try:
        if clear_data:
            clear_user_data(domain, request_user, as_username)
        sync_db(domain, request_user, as_username)
    except FormplayerAPIException:
        notify_exception(None, "Error while priming formplayer user DB", details={
            'domain': domain,
            'username': request_user,
            'as_user': as_username,
            'clear_user_data': clear_data
        })
        metrics_counter("commcare.prime_formplayer_db.error", tags=metric_tags)
    except Exception as e:
        # most likely an error contacting formplayer, try again
        try:
            raise self.retry(exc=e)
        except MaxRetriesExceededError:
            metrics_counter("commcare.prime_formplayer_db.error", tags=metric_tags)
            raise
    else:
        metrics_counter("commcare.prime_formplayer_db.success", tags=metric_tags)