tasks.py 文件源码

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

项目:MetaCI 作者: SalesforceFoundation 项目源码 文件源码
def delete_scratch_orgs():
    reset_database_connection()

    from metaci.cumulusci.models import ScratchOrgInstance
    count = 0
    for org in ScratchOrgInstance.objects.filter(deleted=False,
                                                 delete_error__isnull=False):
        delete_scratch_org.delay(org.id)
        count += 1

    if not count:
        return 'No orgs found to delete'

    return 'Scheduled deletion attempts for {} orgs'.format(count)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号