尝试避免RQ显示警告消息(到控制台),关于使用
基本上,这很烦人,因为它会干扰正常的调试活动。
有什么办法可以禁用它吗?
meta
字典进行任意属性使用。我们正在按照指定方式使用它,但警告仍在显示。
显示的警告如下:
/usr/local/lib/python2.7/site-packages/rq/job.py:381: SyntaxWarning: Getting custom properties from the job instance directly will be unsupported as of RQ 0.4. Please use the meta dict to store all custom variables. So instead of this:
job.foo
Use this:
job.meta['foo']
SyntaxWarning)
基本上,这很烦人,因为它会干扰正常的调试活动。
有什么办法可以禁用它吗?