启动线程,开启任务时:
1.出现错误1
TypeError: __init__() got an unexpected keyword argument 'arg'

ok,python没有能解析出来这个参数,好吧少写了个s,加上就没啥问题了
2.出现错误TypeError: get() missing 1 required positional argument: 'device_id'
device_id的值没传好,修改scheduler.add_job中的args=('2'),设置传入的参数值为2
3.AttributeError: module 'xxx' has no attribute 'xxx'
模块没导好,重新删除该模块再导入一遍
4.Method must have a first parameter, usually called 'self'
意思是说你的方法应该有self的参数,可能是因为我把函数和类改来改去,不知道为什么python要有这个东西,还在搞懂。
5.TypeError: Object of type TypeError is not JSON serializable
数据类型错误的问题,我是用python操作es数据库创建文档时的操作错误,或者是你请求什么返回的数据有误
TypeError: 'module' object is not callable
包导错了,再导入一遍。