使用celery定时任务将MySQL数据同步到MongoDB时报错2006与2013 原因分析
场景
在Flask项目中使用peewee扩展playhouse中的PooledMySQLDatabase 连接MySQL数据库 =>
from playhouse.pool import PooledMySQLDatabase
使用celery+rabbitmq做定时任务,每15分钟将数据从MySQL同步到MongoDB。启动服务、rabbitmq、celery定时任务,使用flo...
原创
2018-10-19 20:27:22 ·
986 阅读 ·
0 评论