web.py 文件源码

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

项目:fireq 作者: superdesk 项目源码 文件源码
def restart(request):
    prefix = request.match_info['prefix']
    try:
        repo = getattr(scopes, prefix).name
    except AttributeError:
        return web.HTTPNotFound()

    ref = request.match_info['ref']
    ref = Ref(repo, ref, '<sha>')
    targets = request.GET.get('t', '').split(',')
    all = request.GET.get('all')

    request.app.loop.create_task(ci(ref, targets, all))
    await asyncio.sleep(2)
    log_url = '%slatest/%s/' % (conf['log_url'], ref.uid)
    return web.HTTPFound(log_url)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号