job.py 文件源码

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

项目:django-celery-growthmonitor 作者: mbourqui 项目源码 文件源码
def job_root(instance, filename=''):
    """
    Return the path of `filename` stored at 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
    """
    return os.path.join(root_job(instance), filename)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号