Celery task that runs more tasks

后端 未结 4 1303
渐次进展
渐次进展 2021-02-04 23:38

I am using celerybeat to kick off a primary task that kicks of a number of secondary tasks. I have both tasks written already.

Is there a way to easily do this? Does Ce

4条回答
  •  清酒与你
    2021-02-05 00:18

    You can use something like this (Support in 3.0 )

    g = group(compute_for_user.s(user.id) for user in users)
    g.apply_async()
    

提交回复
热议问题