'Bind the resource to the agents.'

def bind(self, context, agents, resource_id):

    with context.session.begin(subtransactions=True):
        res = {}
        for agent in agents:
            res['load'] = (agent.load + 1)
            agent.update(res)
