mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-05 22:33:42 +02:00
...
This commit is contained in:
parent
a97d0041a4
commit
31c0b87088
1 changed files with 9 additions and 1 deletions
|
|
@ -42,6 +42,10 @@ def run(self):
|
|||
self.log.exception('Plugin', self.plugin.name, 'failed')
|
||||
self.plugin.dl_time_spent = time.time() - start
|
||||
|
||||
@property
|
||||
def name(self):
|
||||
return self.plugin.name
|
||||
|
||||
def is_worker_alive(workers):
|
||||
for w in workers:
|
||||
if w.is_alive():
|
||||
|
|
@ -348,7 +352,11 @@ def get_results():
|
|||
|
||||
if (first_result_at is not None and time.time() - first_result_at >
|
||||
wait_time):
|
||||
log('Not waiting any longer for more results')
|
||||
log.warn('Not waiting any longer for more results. Still running'
|
||||
' sources:')
|
||||
for worker in workers:
|
||||
if worker.is_alive():
|
||||
log.debug('\t' + worker.name)
|
||||
abort.set()
|
||||
break
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue