def job_result_path(instance, filename):
    """Produce the path to locally store the job results.

    :param Result instance: the :class:`Result` instance to produce the path
        for
    :param str filename: the original filename

    """
    return 'results/{}/{}'.format(instance.job.uuid, filename)