Revision 9fa2e150 lib/jqueue.py
b/lib/jqueue.py | ||
---|---|---|
190 | 190 |
# Condition to wait for changes |
191 | 191 |
self.change = threading.Condition(self.queue._lock) |
192 | 192 |
|
193 |
def __repr__(self): |
|
194 |
status = ["%s.%s" % (self.__class__.__module__, self.__class__.__name__), |
|
195 |
"id=%s" % self.id, |
|
196 |
"ops=%s" % ",".join([op.input.Summary() for op in self.ops])] |
|
197 |
|
|
198 |
return "<%s at %#x>" % (" ".join(status), id(self)) |
|
199 |
|
|
193 | 200 |
@classmethod |
194 | 201 |
def Restore(cls, queue, state): |
195 | 202 |
"""Restore a _QueuedJob from serialized state: |
Also available in: Unified diff