Comments (5)
@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.
@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.
@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.
@cameronmaske I am overriding the name like this name="custom.name"
not using unicode.
from celery-once.
@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)
- File Backend: lock files are not cleaned automatically HOT 3
- Only delay and apply_async check against the lock. HOT 1
- 1 Running, 1 Queued (per set of keys)
- No such file or directory: '/tmp/celery_once/ using file based backend HOT 7
- Recheck that dup task is actually running
- Ability to chain tasks HOT 1
- get_key function return different key for same function.
- Deprecation warning due to invalid escape sequences
- Missing apply_async ConnectionError handling HOT 1
- File backend hashlib.md5 not supported in FIPS mode
- self.retry doesn't retry the task on unittests
- Set the redis lock expire time according to the ETA countdown if "default_timeout" is not given
- Feature request: Queue last
- Once didn't unlock task in redis if settled time_limit in celery HOT 2
- Adding minimum interval param HOT 1
- Still maintained? HOT 2
- Passwords have special symbols
- Not working for scheduled tasks HOT 3
- Unsupported protocol sentinel
- Arguments included in the `one` parameter can not be optional
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from celery-once.