gpt4 book ai didi

python-3.x - 可以在 gpu 上运行 celery 吗?

转载 作者:行者123 更新时间:2023-12-04 08:10:45 25 4
gpt4 key购买 nike

问题是 - 可以在 gpu 上运行 celery 吗?

目前在我的项目中我有如下设置:

celery -A projectname worker -l error --concurrency=8 --autoscale=16,8 
--max-tasks-per-child=1 --prefetch-multiplier=1 --without-gossip --without-mingle --without-heartbeat

这是django项目。

执行一个任务大约需要 12 秒(对 postgresql 的大量插入)。

我想要实现的是尽可能多地增加 worker 。

最佳答案

你可以像这样指定 worker 的数量......

celery -A projectname --workers=3

关于python-3.x - 可以在 gpu 上运行 celery 吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/65978701/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com