35
16

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

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

Posted at

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.

35
16
0

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
  3. You can use dark theme
What you can do with signing up
35
16

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?