django-imagekit/imagekit
Roman Gorbil de991d4048 Fix pickle serialization for ImageCacheFile
When Celery CachedFileBackend used with filesystem storage (django.core.files.storage.FileSystemStorage), everything works fine.
But there are issues with storages.backends.s3boto3.S3Boto3Storage (and it's fix from #391), as well as with django_s3_storage.storage.S3Storage.

Exception was:

```
Traceback (most recent call last):
  ...

  File "/src/django-imagekit/imagekit/cachefiles/__init__.py", line 131, in __bool__
    existence_required.send(sender=self, file=self)
  ...
  File "/libs/utils.py", line 380, in on_existence_required
    file.generate()
  File "/src/django-imagekit/imagekit/cachefiles/__init__.py", line 94, in generate
    self.cachefile_backend.generate(self, force)
  File "/src/django-imagekit/imagekit/cachefiles/backends.py", line 136, in generate
    self.schedule_generation(file, force=force)
  File "/src/django-imagekit/imagekit/cachefiles/backends.py", line 165, in schedule_generation
    _celery_task.delay(self, file.generator, force=force)
  ...
  File "/lib/python3.6/site-packages/kombu/serialization.py", line 221, in dumps
    payload = encoder(data)
  File "/lib/python3.6/site-packages/kombu/serialization.py", line 350, in pickle_dumps
    return dumper(obj, protocol=pickle_protocol)
kombu.exceptions.EncodeError: can't pickle _thread._local objects
```
2018-06-03 18:06:57 +03:00
..
cachefiles Fix pickle serialization for ImageCacheFile 2018-06-03 18:06:57 +03:00
forms Fixes #379 Support for Django 1.10 2016-07-11 01:59:32 +03:00
management Make generateimages support pre Django 1.8 versions 2017-09-12 20:46:24 +03:00
models Fixed #368 use specs directly in ProcessedImageField 2017-05-18 23:38:32 +03:00
processors Deprecate imagekit.processors submodules 2014-09-28 18:31:33 +03:00
specs Close the file only if it has been opened locally 2017-02-15 21:24:32 -08:00
templates/imagekit/admin Proper handling of empty images and missing fields 2011-11-03 12:33:22 -04:00
templatetags Move compat module outside of templatetags package 2015-12-26 17:58:22 +02:00
__init__.py Deprecate imagekit.processors submodules 2014-09-28 18:31:33 +03:00
admin.py "source" now refers to the file itself 2012-12-11 22:53:13 -05:00
compat.py Move compat module outside of templatetags package 2015-12-26 17:58:22 +02:00
conf.py Make it possible to configure IMAGEKIT_CACHE_TIMEOUT 2017-02-17 02:47:19 +02:00
exceptions.py Error when attempting to generate image w/o source 2013-02-25 22:42:47 -05:00
files.py Fixed #350: Error when trying to access width/height after url 2016-07-17 05:08:01 +03:00
generatorlibrary.py pass in upscale keyword to thumbnail template tag 2013-05-11 09:12:29 -03:00
hashers.py Add Python 3 suport and drop support for Python 2.5 2013-08-19 21:27:50 +03:00
lib.py Remove @vstoykov's note. Seems like the right place to me (: 2013-12-14 13:03:02 -05:00
pkgmeta.py Bump version to 4.0.1 2017-05-17 17:45:22 +03:00
registry.py Discover image generators during lookup 2013-08-14 23:08:40 -04:00
signals.py Remove source_deleted signal 2013-05-25 00:50:59 -04:00
utils.py Cleaned up _autodiscovered flag handling. 2017-05-17 09:51:24 +02:00