katello-publish-cvs.py 文件源码

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

项目:katello-publish-cvs 作者: RedHatSatellite 项目源码 文件源码
def wait_for_publish(seconds):
    """
    Wait for all publishing tasks to terminate. Search string is:
    label = Actions::Katello::ContentView::Publish and state = running
    """

    count = 0 
    print "Waiting for publish tasks to finish..."

    # Make sure that publish tasks gets the chance to appear before looking for them
    time.sleep(2) 

    while get_json(URL + publish_tasks)["total"] != 0:
        time.sleep(seconds)
        count += 1

    print "Finished waiting after " + str(seconds * count) + " seconds"
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号