'Maintain some limit levels so that we don\'t hammer search
sites with unreasonable amount of queries.
:return: Entries that are up for ``config[\'interval\']``'

def interval_expired(self, config, task, entries):

    config.setdefault(u'interval', u'5    hour')
    interval = parse_timedelta(config[u'interval'])
    if task.options.discover_now:
        log.info(u'Ignoring    interval    because    of    --discover-now')
    result = []
    interval_count = 0
    with Session() as session:
        for entry in entries:
            discover_entry = session.query(DiscoverEntry).filter((DiscoverEntry.title == entry[u'title'])).filter((DiscoverEntry.task == task.name)).first()
            if (not discover_entry):
                log.debug(u'%s    ->    No    previous    run    recorded', entry[u'title'])
                discover_entry = DiscoverEntry(entry[u'title'], task.name)
                session.add(discover_entry)
            if (((not task.is_rerun) and task.options.discover_now) or (not discover_entry.last_execution)):
                delta = multiply_timedelta(interval, random.random())
                discover_entry.last_execution = (datetime.datetime.now() - delta)
            else:
                next_time = (discover_entry.last_execution + interval)
                log.debug(u'last_time:    %r,    interval:    %s,    next_time:    %r,    ', discover_entry.last_execution, config[u'interval'], next_time)
                if (datetime.datetime.now() < next_time):
                    log.debug(u'interval    not    met')
                    interval_count += 1
                    entry.reject(u'discover    interval    not    met')
                    entry.complete()
                    continue
                discover_entry.last_execution = datetime.datetime.now()
            log.trace(u'interval    passed    for    %s', entry[u'title'])
            result.append(entry)
    if (interval_count and (not task.is_rerun)):
        log.verbose(u'Discover    interval    of    %s    not    met    for    %s    entries.    Use    --discover-now    to    override.', config[u'interval'], interval_count)
    return result
