Closed srchulo closed 3 years ago
Hi, Adam
I cannot tell why workers are not completing in your case or whether workers crashed :( Or if the log buffer is not being flushed.
Is there a more granular way...? Yes, one may specify chunk_size => 1
to disable chunking.
MCE::Map->init(
max_workers => 4,
chunk_size => 1,
user_begin => sub {
$log->info("Worker ## " . MCE->wid . " started");
},
user_end => sub {
$log->info("Worker ## " . MCE->wid . " completed");
},
);
mce_map {
$log->info("Worker ## " . MCE->wid . " processing chunk ## " . MCE->chunk_id);
# do stuff
} @items;
For progress updates, one may specify the progress option.
Hoping that all is well.
Regards!
@marioroy Thank you for the help! That helped me track down the issue :)
Hi, I'm wondering if there is a good way to debug what is going on in workers, or their ongoing progress. I have an issue where I'm running a job and some of the workers never finish. Here is my setup:
And I will get this output:
And workers 3/4 will never finish. This is using
mce_map
. Is there a more granular way thanuser_begin
anduser_end
to see what is occuring within workers? Or even a way to print out an aggregate progress update, like300/1000 processed
?Thank you!