Giter Club home page Giter Club logo

Comments (5)

cameronmaske avatar cameronmaske commented on August 15, 2024

@chripede Which version of celery once are you on? 0.1.1 includes some unicode fixes (#11).
If you are on 0.1.1, could you include an example of running .delay with arguments thats creates the error?

from celery-once.

chripede avatar chripede commented on August 15, 2024

@cameronmaske I'm using 0.1.1.
My call do .delay is like this .delay(model, stats_date=date_var)
Where model is a Django model with a __unicode__ that seems to be the one used for the key.

This commit https://github.com/chripede/celery-once/commit/c7335256d06a96579b2250d0e619da17b7f67da3 fixes the error, but it breaks Python 3 compatibility.

from celery-once.

cameronmaske avatar cameronmaske commented on August 15, 2024

@chripede Do you happen to override the name of your celery task? e.g.

@celery.task(name=u"foo")
def foo(a, b, c):
    pass

The UnicodeDecodeError should only be raised if attempting to join unicode and string objects and #11 force everything but the name to a string currently.

from celery-once.

chripede avatar chripede commented on August 15, 2024

@cameronmaske I am overriding the name like this name="custom.name" not using unicode.

from celery-once.

cameronmaske avatar cameronmaske commented on August 15, 2024

@chripede #20 should hopefully fix this! Let me know if it doesn't and we can re-open this.

from celery-once.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.