def expire(self, name):
    for interval,config in self._intervals.items():
      if config['expire']:
        # Because we're storing the bucket time, expiry has the same
        # "skew" as whatever the buckets are.
        expire_from = config['i_calc'].to_bucket(time.time() - config['expire'])
        conn = self._client.connect()

        conn.execute( self._table.delete().where(
          and_(
            self._table.c.name==name,
            self._table.c.interval==interval,
            self._table.c.i_time<=expire_from
          )
        ))
Initialise the limits.
dataset/ETHPy150Open agoragames/kairos/kairos/sql_backend.py/SqlBackend.expire--crossover with--dataset/ETHPy150Open lyda/chkcrontab/chkcrontab_lib.py/CronTimeFieldLimit.__init__