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.
main
Vincent Driessen 13 years ago
parent c0ab4f7966
commit a017756748

@ -89,6 +89,7 @@ class Job(object):
@property
def status(self):
self._status = self.connection.hget(self.key, 'status')
return self._status
@property

Loading…
Cancel
Save