search
LoginSignup
17

More than 5 years have passed since last update.

posted at

ActiveJobの引数にはなんでも突っ込んでいいわけではない

ActiveJobの引数に独自クラスを突っ込むとエラーになった。

ActiveJob::SerializationError (Unsupported argument type: Foo::Bar):

serializationしてるから、下記以外のクラスを入れたらエラーになるらしい。

Raised when an unsupported argument type is being set as job argument. We currently support NilClass, Fixnum, Float, String, TrueClass, FalseClass, Bignum and object that can be represented as GlobalIDs (ex: Active Record). Also raised if you set the key for a Hash something else than a string or a symbol.

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
What you can do with signing up
17