def METHOD_NAME(*args, **kwargs):
    while True:
        try:
            func(*args, **kwargs)
        except Exception as e:
            logger.warning('MaintThread (%s) Error: %s', args[0], e)
        time.sleep(stime)