Metadata-Version: 2.0
Name: celery-dill-serializer
Version: 0.1.3
Summary: Dill serializer for Celery 4.0+
Home-page: https://github.com/mathiasose/celery_dill_serializer
Author: Mathias Ose
Author-email: mathias.ose@gmail.com
License: UNKNOWN
Download-URL: https://github.com/mathiasose/celery_dill_serializer/releases/tag/0.1.3
Keywords: celery,dill,serialization
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: License :: OSI Approved :: MIT License
Requires-Dist: celery (>=4.0.2)
Requires-Dist: dill (>=0.2.5)

celery_dill_serializer
======================

NameError when running serialized functions
-------------------------------------------

There are some issues with ``NameError`` when serialized functions depend on values defined outside of the scope of the ``def``.
Try putting imports and such inside the function definition, i.e.

.. code-block:: python

    def make_me_a_pi():
        import math
        return math.pi

as opposed to 

.. code-block:: python

    import math

    def make_me_a_pi():
        return math.pi

which would result in ``NameError: name 'math' is not defined``.


