No commit activity in last 3 years
No release in over 3 years
When the object or arg to a delayed_job is a Mongoid document, store only a small stub of the object instead of the full serialization.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 10.0
>= 3.0
= 0.34.2

Runtime

 Project Readme

delayed_job_shallow_mongoid

Build Status Gem Version

This library short-circuits serialization of Mongoid model instances when a delayed job is called on them, or when they're passed as arguments to a delayed job. Rather than generate and store the fully-serialized YAML, a simple stub is stored. When the job is run, the stub is recognized and a find is done to look up the underlying document. If a referenced model isn't found at this point, the job simply does nothing.

This gem supports Mongoid 3.x, 4.x and 5.x.

Contributions

  • Contributions encouraged. Feature branches appreciated.
  • Development generously supported by Artsy.

Copyright

Copyright (c) 2011-2015 Joey Aghion, Artsy Inc.

MIT License. See LICENSE for further details.