From a01775674899944f74a9236df8a55ae4863e98e6 Mon Sep 17 00:00:00 2001 From: Vincent Driessen Date: Mon, 27 Aug 2012 14:35:04 +0200 Subject: [PATCH] Fetch fresh status value on every request. It could probably require a bit of caching, to prevent too many fetches per time slot (for example, return the locally cached value if that value is as fresh as a second or so). This fixes #120. --- rq/job.py | 1 + 1 file changed, 1 insertion(+) diff --git a/rq/job.py b/rq/job.py index da78253..84fa3f8 100644 --- a/rq/job.py +++ b/rq/job.py @@ -89,6 +89,7 @@ class Job(object): @property def status(self): + self._status = self.connection.hget(self.key, 'status') return self._status @property