We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
django/core/cache/backends/memcached.py:54: DeprecationWarning: integer argument expected, got float self._cache.set(smart_str(key), value, self._get_memcache_timeout(timeout))
backends / cache.py: if isinstance(expires, timedelta): expires = timedelta_seconds(conf.TASK_RESULT_EXPIRES)
timedelta_seconds() returns a float instead of int and that upsets django.
The text was updated successfully, but these errors were encountered:
Expiry for cache keys must be int, not float. Closed by b405f57. Thanks to jonozzz
Sorry, something went wrong.
Wait a minute...why is this checked-into djcelery ? I wonder why I filed this issue against django-celery...hmm.
I'm still getting the warning, this time in celery module:
[2010-10-06 18:14:01,517: WARNING/PoolWorker-2] /usr/lib64/python2.6/site-packages/celery-2.0.3-py2.6.egg/celery/backends/cache.py:71: DeprecationWarning: integer argument expected, got float return self.client.set(key, value, self.expires)
I fixed this in the celery cache backend as well. Thanks!
No branches or pull requests
django/core/cache/backends/memcached.py:54: DeprecationWarning: integer argument expected, got float
self._cache.set(smart_str(key), value, self._get_memcache_timeout(timeout))
backends / cache.py:
if isinstance(expires, timedelta):
expires = timedelta_seconds(conf.TASK_RESULT_EXPIRES)
timedelta_seconds() returns a float instead of int and that upsets django.
The text was updated successfully, but these errors were encountered: