问题是 - 是否可以在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进行大量插入)。
我想要实现的是尽可能多地增加工作人员。