mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
7be397aae6
commit
466a399c34
@ -98,7 +98,7 @@ class Pool(Thread):
|
|||||||
self.worker_data = cPickle.dumps((self.address, self.auth_key, self.common_data), -1)
|
self.worker_data = cPickle.dumps((self.address, self.auth_key, self.common_data), -1)
|
||||||
for worker in self.available_workers:
|
for worker in self.available_workers:
|
||||||
try:
|
try:
|
||||||
worker.set_common_data(data)
|
worker.set_common_data(self.worker_data[-1])
|
||||||
except Exception:
|
except Exception:
|
||||||
import traceback
|
import traceback
|
||||||
self.terminal_failure = TerminalFailure('Worker process crashed while sending common data', traceback.format_exc())
|
self.terminal_failure = TerminalFailure('Worker process crashed while sending common data', traceback.format_exc())
|
||||||
@ -258,7 +258,7 @@ def worker_main(conn, common_data):
|
|||||||
if job is None:
|
if job is None:
|
||||||
break
|
break
|
||||||
if not isinstance(job, Job):
|
if not isinstance(job, Job):
|
||||||
common_data = job
|
common_data = cPickle.loads(job)
|
||||||
continue
|
continue
|
||||||
try:
|
try:
|
||||||
if '\n' in job.module:
|
if '\n' in job.module:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user