celery-singleton
                                
                                 celery-singleton copied to clipboard
                                
                                    celery-singleton copied to clipboard
                            
                            
                            
                        Optional setting `single_json_encoder_class`: Set `json`-compatible encoder class to `generate_lock()`
Fixes cases such as #42 #36
json.dumps() accepts an optional cls of a jsonJSONEncoder
This matches the intention of the json library.
This is great for cases where users use a celery backend that supports passing uuid.UUID arguments and simply needs to cast. Many codebases already have an encoder for such purposes, some major packages have them such as django.core.serializers.json.DjangoJSONEncoder
@steinitzu Is it possible you could give this a peak?
Can you also fix master's tests?
@steinitzu Any update on this? Can you take a look?
@steinitzu Also giving another ping and letting you know I'd love for you to take a look at this
Thank you!
@steinitzu Rebased after 35a16b2 ✅
Merging this as is. I'll fix the tests in a separate PR, they have other unrelated issues.
@steinitzu Thank you!
I'll fix the tests in a separate PR, they have other unrelated issues.
P.S. If you're interested in a CI setup for django + github actions, I have two examples you can use (MIT licensed):
- 
django-slugify-processor: - GH Action: https://github.com/tony/django-slugify-processor/blob/v1.3.1a0/.github/workflows/tests.yml
- pytest config: https://github.com/tony/django-slugify-processor/blob/v1.3.1a0/setup.cfg#L23-L32
 
- 
django-docutils - GH Action: https://github.com/tony/django-docutils/blob/v0.9.0/.github/workflows/tests.yml
- pytest config: https://github.com/tony/django-docutils/blob/v0.9.0/setup.cfg#L26-L34