新手问题 有关 Sidekiq::Worker 的 perform_async 方法传入的参数的问题

MarineJoker · 2019年02月27日 · 最后由 MarineJoker 回复于 2019年02月27日 · 1086 次阅读

新手写队列相关问题时,当向 perform_async 方法传递的参数为一个 model 对象的实例时,就会出现找不到实例的方法的错误,这是为什么?😅

The arguments you pass to perform_async must be composed of simple JSON datatypes: string, integer, float, boolean, null, array and hash.

https://github.com/mperham/sidekiq/wiki/Best-Practices

hellorails 回复

多谢老哥

3 楼 已删除
MarineJoker 关闭了讨论。 02月27日 10:40
需要 登录 后方可回复, 如果你还没有账号请 注册新账号