Skip to content

Commit

Permalink
Update guides/custom-enumerator.md
Browse files Browse the repository at this point in the history
Co-authored-by: Adrianna Chang <[email protected]>
  • Loading branch information
sambostock and adrianna-chang-shopify authored Feb 14, 2023
1 parent efd94dd commit 1c662e2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions guides/custom-enumerator.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,8 @@ end
If this job was interrupted, Active Job would be unable to serialize
`FancyCursor`, and Job Iteration would fallback to the legacy behavior of not
serializing the cursor. This would typically result in the queue adapter
eventually serializing the cursor as JSON by calling `.to_s` on it. Upon
deserialization, the cursor would be corrupted as `:abc`, rather than
`FancyCursor.new(:abc)`.
eventually serializing the cursor as JSON by calling `.to_s` on it. The cursor would
be deserialized as `:abc`, rather than the intended `FancyCursor.new(:abc)`.

To avoid this, job authors should take care to ensure that their cursor is
serializable by Active Job. This can be done in a couple ways, such as:
Expand Down

0 comments on commit 1c662e2

Please sign in to comment.