def METHOD_NAME(func):
    lock = filelock.FileLock(LOCK_FILE)
    # It is important to use wraps() to preserve the original name & docstring.
    @functools.wraps(func)
    def decorated_func(*args, **kwargs):
        try:
            with lock.acquire(timeout=1):
                return func(*args, **kwargs)
        except filelock.Timeout:
            app.logger.info('%s unable to acquire lock.', func.__name__)
            return ('A result is currently being processed.',
                    HTTPStatus.SERVICE_UNAVAILABLE)
    return decorated_func