Closed Munksgaard closed 8 months ago
@Munksgaard Thank you for opening an issue, it's sure to help others in the future. I've also added a note to the primary docs/readme to clarify the difference.
🌟 For your reference, and any others who stumble on this, Oban Pro's structured jobs enables encoding/decoding of arbitrary values in job args
.
Environment
elixir --version
): Elixir 1.16.1 (compiled with Erlang/OTP 25)Current Behavior
Enqueueing a job that contains an unserializable value, such as an
Ecto.Changeset
causes the following error:Here's a simplified version of the code I used:
Expected Behavior
I realize that this may be expected behavior from Oban. After all, how are you going to serialize arbitrary structs into json for the database. However, I didn't really see this restriction documented anywhere, nor could I find any other error reports documenting the error, so I thought I'd post this here for others like me who run into similar problems.
Feel free to close the issue without doing anything :smile: