def METHOD_NAME(name, result):
    """
    Wrap a job and return a function that can be used like the original function.
    The returned function will always return ``result``.
    This assumes that a queue is configured! Otherwise, calling the
    resulting function will fail with a ServerError.
    :return: a function
    """
    def caller(*args, **kwargs):
        get_job_queue().enqueue(name, args, kwargs)
        return result
    return caller