I have a code that downloads files from gstorage dumps them to json turn that json to csv then to parquet and finally uploaded to aws s3 (dont ask why its like that im not the one that wrote it).
I discovered from my logs that sometimes the run ends without all the subprocesses completing.
Does someone has any idea on why that could happen? and if not do you think that maybe switching
ProcessPoolExecutor with a plain multiprocessing could help?
In my main to start this whole thing I use:
with ProcessPoolExecutor(max_workers=NUM_OF_PROCESS_WORKERS) as process_executor:
for table_type in TABLES_COLUMNS_MAPPER.keys():
for node in nodes:
process_executor.submit(handle_sstable_group_files_per_node, node, table_type)
I'm using ubuntu if that any help
Thanks.