@provide_session
    def used_slots(self, session):
        running = (
            session
            .query(TaskInstance)
            .filter(TaskInstance.pool == self.pool)
            .filter(TaskInstance.state == State.RUNNING)
            .count()
        )
        return running
Ensure event source mapping with passed properties is absent.
dataset/ETHPy150Open airbnb/airflow/airflow/models.py/Pool.used_slots--crossover with--dataset/ETHPy150Open saltstack/salt/salt/states/boto_lambda.py/event_source_mapping_absent