Permalink
Browse files

Revert "pika accepts x_expires in milliseconds"

This reverts commit 52d2827.
  • Loading branch information...
1 parent 52d2827 commit 12f3a308d9f1cfae50cdfcc21e8092d37afc2375 @mher committed May 15, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 tcelery/producer.py
View
@@ -65,9 +65,9 @@ def on_result(self, callback, method, channel, deliver, reply):
def prepare_expires(self, value=None, type=None):
if value is None:
- value = self.app.conf.CELERY_TASK_RESULT_EXPIRES * 1000
+ value = self.app.conf.CELERY_TASK_RESULT_EXPIRES
if isinstance(value, timedelta):
- value = timeutils.timedelta_seconds(value)
+ value = timeutils.timedelta_seconds(value) * 1000
if value is not None and type:
return type(value)
return value

0 comments on commit 12f3a30

Please sign in to comment.