Add repr for (showing id and enqueue time).

This commit is contained in:
Malthe Borch 2014-02-19 12:50:04 +01:00
parent 9ad7da684c
commit ad529e2609
1 changed files with 3 additions and 0 deletions

View File

@ -273,6 +273,9 @@ class Job(object):
self._dependency_id = None
self.meta = {}
def __repr__(self): # noqa
return 'Job(%r, enqueued_at=%r)' % (self._id, self.enqueued_at)
# Data access
def get_id(self): # noqa
"""The job ID for this job instance. Generates an ID lazily the