def release_data(key, state, delete=True):
    if key in state['waiting_data']:
        assert not state['waiting_data'][key]
        del state['waiting_data'][key]

    state['released'].add(key)

    if delete:
        del state['cache'][key]
Get the valid l3 agents for the router from a list of l3_agents.
dataset/ETHPy150Open dask/dask/dask/async.py/release_data--crossover with--dataset/ETHPy150Open openstack/neutron/neutron/db/l3_agentschedulers_db.py/L3AgentSchedulerDbMixin.get_l3_agent_candidates