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

MarineJoker · February 27, 2019 · Last by MarineJoker replied at February 27, 2019 · 1088 hits

新手写队列相关问题时,当向 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

3 Floor has deleted
MarineJoker closed this topic. 27 Feb 10:40
You need to Sign in before reply, if you don't have an account, please Sign up first.