mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
More device job sequencing debug printouts
This commit is contained in:
parent
47415caf3b
commit
8e22f5c432
@ -58,10 +58,17 @@ class DeviceJob(BaseJob): # {{{
|
|||||||
def job_done(self):
|
def job_done(self):
|
||||||
self.duration = time.time() - self.start_time
|
self.duration = time.time() - self.start_time
|
||||||
self.percent = 1
|
self.percent = 1
|
||||||
|
if DEBUG:
|
||||||
|
prints('DeviceJob:', self.id, self.description,
|
||||||
|
'done, calling callback', safe_encode=True)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
self.callback_on_done(self)
|
self.callback_on_done(self)
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
if DEBUG:
|
||||||
|
prints('DeviceJob:', self.id, self.description,
|
||||||
|
'callback returned', safe_encode=True)
|
||||||
self.job_manager.changed_queue.put(self)
|
self.job_manager.changed_queue.put(self)
|
||||||
|
|
||||||
def report_progress(self, percent, msg=''):
|
def report_progress(self, percent, msg=''):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user