mirror of https://github.com/rq/rq.git
Add repr for (showing id and enqueue time).
This commit is contained in:
parent
9ad7da684c
commit
ad529e2609
|
@ -273,6 +273,9 @@ class Job(object):
|
||||||
self._dependency_id = None
|
self._dependency_id = None
|
||||||
self.meta = {}
|
self.meta = {}
|
||||||
|
|
||||||
|
def __repr__(self): # noqa
|
||||||
|
return 'Job(%r, enqueued_at=%r)' % (self._id, self.enqueued_at)
|
||||||
|
|
||||||
# Data access
|
# Data access
|
||||||
def get_id(self): # noqa
|
def get_id(self): # noqa
|
||||||
"""The job ID for this job instance. Generates an ID lazily the
|
"""The job ID for this job instance. Generates an ID lazily the
|
||||||
|
|
Loading…
Reference in New Issue