From 513f6310d2d6946907b34141f13d7637de6acb2b Mon Sep 17 00:00:00 2001 From: Marcus Martins Date: Thu, 28 May 2015 23:35:30 -0300 Subject: [PATCH] Change default TTL to None insted of -1 --- rq/job.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rq/job.py b/rq/job.py index c1022cc..ebccb13 100644 --- a/rq/job.py +++ b/rq/job.py @@ -417,7 +417,7 @@ class Job(object): self.result_ttl = int(obj.get('result_ttl')) if obj.get('result_ttl') else None # noqa self._status = as_text(obj.get('status') if obj.get('status') else None) self._dependency_id = as_text(obj.get('dependency_id', None)) - self.ttl = int(obj.get('ttl', -1)) + self.ttl = int(obj.get('ttl')) if obj.get('ttl') else None self.meta = unpickle(obj.get('meta')) if obj.get('meta') else {} def to_dict(self):