job.py 文件源码

python
阅读 29 收藏 0 点赞 0 评论 0

项目:django-celery-growthmonitor 作者: mbourqui 项目源码 文件源码
def job_results(instance, filename=''):
    """
    Return the path of `filename` stored in a subfolder of the root folder of his job `instance`.

    Parameters
    ----------
    instance : AJob
        The model instance associated
    filename : str
        Original filename

    Returns
    --------
    str
        Path to filename which is unique for a job
    """
    tail = _user_path(instance.upload_to_results, filename) or os.path.join('results', filename)
    return os.path.join(root_job(instance), tail)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号