Open
Description
Hi there,
I'm trying to use this package but for some weird reason each subprocess is only executing once and hanging the rest of the code.
I'm using python 3.9, here is a snippet of the code:
# create page data for parallel execution
pages_data = []
for current_page in page_indices:
pages_data.append((
reader,
vertical,
title,
teacher,
current_page,
pages_total
))
# Creates final page and append to final PDF
with Pool() as executor:
rendered_pages = executor.starmap(generators.CreatePageWithWatermark, pages_data)
for page in rendered_pages:
result_pdf_final.add_page(page)
Each generators.CreatePageWithWatermark
execution prints the current page and only 1 page is being processed by each subprocess. If i have less pages than the total of cores the code run just fine.
Just for fun I've set 1000 subprocess and my pc freezed but all pages were rendered.
The same behavior happens on the aws lambda.
Thks! that's a great little package.
edit: so now (out of the blue) its working on my pc but not on awslambda, only 6 executions are happening. Very weird.
Metadata
Metadata
Assignees
Labels
No labels