From ad529e2609005d19be7e1cf7d47281810facc03a Mon Sep 17 00:00:00 2001 From: Malthe Borch Date: Wed, 19 Feb 2014 12:50:04 +0100 Subject: [PATCH] Add repr for (showing id and enqueue time). --- rq/job.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rq/job.py b/rq/job.py index a705873..de2b007 100644 --- a/rq/job.py +++ b/rq/job.py @@ -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