Issue 1:
Hi,

I am having some issues running latest celery 3.0.6 with django, from time to time some unrecoverable error occours and the worker crashes.

I am running with redis as backend, this is the packages I am using:

django==1.3

celery==3.0.6

django-celery==3.0.6

redis==2.4.12

Here some settings:

CELERY_SEND_EVENTS = False

CELERY_IGNORE_RESULT = True

CELERY_TASK_PUBLISH_RETRY = True

CELERY_DISABLE_RATE_LIMITS = True

CELERY_ACKS_LATE = False

CELERY_MESSAGE_COMPRESSION = 'gzip'

python 2.7.3

and here is the error:

Unrecoverable error: 'ValueError('could not convert string to float: {"body": "gAJ9cQEoVQdyZXRyaWVzcQJLAFUEdGFza3EDVRVlbnRpdHkudGFza3MuYWRkX2xvdmVxBFUIZXJyYmFja3NxBU5VCWNhbGxiYWNrc3EGTlUGa3dhcmdzcQd9cQgoVQllbnRpdHlfaWRxCUp/KmQAVQd1c2VyX2lkcQpKjyENAFUPcG9wdWxhcl9mYXNoaW',)'

and the stacktrace:

Stacktrace (most recent call last):

File "celery/worker/init.py", line 353, in start

component.start()

File "celery/worker/consumer.py", line 369, in start

self.consume_messages()

File "celery/worker/consumer.py", line 449, in consume_messages

on_poll_empty()

File "kombu/transport/redis.py", line 637, in on_poll_empty

self.cycle.on_poll_empty()

File "kombu/transport/redis.py", line 209, in on_poll_empty

channel.qos.restore_visible()

File "kombu/transport/redis.py", line 102, in restore_visible

start=start, num=num, withscores=True)

File "redis/client.py", line 1076, in zrevrangebyscore

return self.execute_command(_pieces, *_options)

File "kombu/transport/redis.py", line 546, in execute_command

return self.parse_response(conn, command_name, **options)

File "redis/client.py", line 347, in parse_response

return self.response_callbacks[command_name](response, **options)

File "redis/client.py", line 127, in zset_score_pairs

return list(izip(it, imap(score_cast_func, it)))

Let me know if I missed some info about this and if I need to be more specific about my current setup/environment.

ps.

Since I was running an old python redis client (2.4.x) I tried to go for the 2.6.2 but that did not helped.

Issue 2:
I'm running django-celery 3.0.6 on Heroku with a Redis broker. About 1 minute after starting, Celery crashes with this traceback:

2012-08-24T01:34:25+00:00 app[celeryd.1]: [2012-08-23 21:34:25,498: ERROR/MainProcess] Unrecoverable error: ValueError('could not convert str
ing to float: {"body": "gAJ9cQEoVQdyZXRyaWVzcQJLAFUEdGFza3EDVSZmcHMudGFza3MuY2hlY2tfcGF5bWVudF9zdGF0dXNfY2xlYW51cHEEVQhlcnJiYWNrc3EFTlUJY2Fsb
GJhY2tzcQZOVQZrd2FyZ3NxB31xCFUDZXRhcQlOVQRhcmdzcQpdcQtVAmlkcQxVJDBlMDVhYj',)
2012-08-24T01:34:25+00:00 app[celeryd.1]: Traceback (most recent call last):
2012-08-24T01:34:25+00:00 app[celeryd.1]: File "/app/lib/python2.7/site-packages/celery/worker/__init__.py", line 353, in start
2012-08-24T01:34:25+00:00 app[celeryd.1]: component.start()
2012-08-24T01:34:25+00:00 app[celeryd.1]: File "/app/lib/python2.7/site-packages/celery/worker/consumer.py", line 369, in start
2012-08-24T01:34:25+00:00 app[celeryd.1]: self.consume_messages()
2012-08-24T01:34:25+00:00 app[celeryd.1]: File "/app/lib/python2.7/site-packages/celery/worker/consumer.py", line 449, in consume_messages
2012-08-24T01:34:25+00:00 app[celeryd.1]: on_poll_empty()
2012-08-24T01:34:25+00:00 app[celeryd.1]: File "/app/lib/python2.7/site-packages/kombu/transport/redis.py", line 637, in on_poll_empty
2012-08-24T01:34:25+00:00 app[celeryd.1]: self.cycle.on_poll_empty()
2012-08-24T01:34:25+00:00 app[celeryd.1]: File "/app/lib/python2.7/site-packages/kombu/transport/redis.py", line 209, in on_poll_empty
2012-08-24T01:34:25+00:00 app[celeryd.1]: channel.qos.restore_visible()
2012-08-24T01:34:25+00:00 app[celeryd.1]: File "/app/lib/python2.7/site-packages/kombu/transport/redis.py", line 102, in restore_visible
2012-08-24T01:34:25+00:00 app[celeryd.1]: start=start, num=num, withscores=True)
2012-08-24T01:34:25+00:00 app[celeryd.1]: File "/app/lib/python2.7/site-packages/newrelic-1.4.0.137/newrelic/api/object_wrapper.py", line 1
66, in __call__
2012-08-24T01:34:25+00:00 app[celeryd.1]: self._nr_instance, args, kwargs)
2012-08-24T01:34:25+00:00 app[celeryd.1]: File "/app/lib/python2.7/site-packages/newrelic-1.4.0.137/newrelic/api/function_trace.py", line 7
6, in literal_wrapper
2012-08-24T01:34:25+00:00 app[celeryd.1]: return wrapped(*args, **kwargs)
2012-08-24T01:34:25+00:00 app[celeryd.1]: File "/app/lib/python2.7/site-packages/redis/client.py", line 1076, in zrevrangebyscore
2012-08-24T01:34:25+00:00 app[celeryd.1]: return self.execute_command(*pieces, **options)
2012-08-24T01:34:25+00:00 app[celeryd.1]: File "/app/lib/python2.7/site-packages/kombu/transport/redis.py", line 546, in execute_command
2012-08-24T01:34:25+00:00 app[celeryd.1]: return self.parse_response(conn, command_name, **options)
2012-08-24T01:34:25+00:00 app[celeryd.1]: File "/app/lib/python2.7/site-packages/redis/client.py", line 347, in parse_response
2012-08-24T01:34:25+00:00 app[celeryd.1]: return self.response_callbacks[command_name](response, **options)
2012-08-24T01:34:25+00:00 app[celeryd.1]: File "/app/lib/python2.7/site-packages/redis/client.py", line 127, in zset_score_pairs
2012-08-24T01:34:25+00:00 app[celeryd.1]: return list(izip(it, imap(score_cast_func, it)))
2012-08-24T01:34:25+00:00 app[celeryd.1]: ValueError: could not convert string to float: {"body": "gAJ9cQEoVQdyZXRyaWVzcQJLAFUEdGFza3EDVSZmcH
MudGFza3MuY2hlY2tfcGF5bWVudF9zdGF0dXNfY2xlYW51cHEEVQhlcnJiYWNrc3EFTlUJY2FsbGJhY2tzcQZOVQZrd2FyZ3NxB31xCFUDZXRhcQlOVQRhcmdzcQpdcQtVAmlkcQxVJDB
lMDVhYj
2012-08-24T01:34:25+00:00 app[celeryd.1]: [2012-08-23 21:34:25,500: INFO/Beat] Scheduler: Sending due task portal.tasks.decider
2012-08-24T01:34:26+00:00 app[celeryd.1]: [2012-08-23 21:34:26,492: INFO/MainProcess] Celerybeat: Shutting down...
2012-08-24T01:34:27+00:00 heroku[celeryd.1]: Process exited with status 0
2012-08-24T01:34:27+00:00 heroku[celeryd.1]: State changed from up to crashed