'Start the above runner function in a daemon thread.
The thread is a typical daemon thread: it will never quit and must be
terminated when the main process exits - with no consequence (the processing
threads it spawns are not marked daemon).'

def cron_spawn(self):

    datetime.datetime.strptime('2012-01-01', '%Y-%m-%d')
    for i in range(odoo.tools.config['max_cron_threads']):
        def target():
            self.cron_thread(i)
        t = threading.Thread(target=target, name=('odoo.service.cron.cron%d' % i))
        t.setDaemon(True)
        t.start()
        _logger.debug(('cron%d    started!' % i))
