def METHOD_NAME():
    """Flush until queue is empty."""
    config = get_config_dict()
    flush = get_flush(config, get_client(config), get_queue(config))
    asyncio.new_event_loop().run_until_complete(flush.run_until_complete())