testapp.py 文件源码

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

项目:celery-deadline 作者: chadrik 项目源码 文件源码
def test_mixed():
    from celery import chain
    from celery_deadline import job

    task = chain(
        job('Python', '1-2',
            plugin_info=dict(
                ScriptFile='/Users/chad/python/untitled.py',
                Version='2.7')),
        sum.s()  # <-- will go to a celery worker
    )
    result = task.apply_async()
    print("waiting for results:")
    print(result.get())
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号