Merge pull request #314 from malthe/add-job-repr

Add repr for `Job` (showing id and enqueue time)
main
Vincent Driessen 11 years ago
commit 776ed0a1d5

@ -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

Loading…
Cancel
Save