]> Sergey Matveev's repositories - public-inbox.git/commit
lei up: avoid excessively parallel --all
authorEric Wong <e@80x24.org>
Wed, 22 Sep 2021 02:24:34 +0000 (02:24 +0000)
committerEric Wong <e@80x24.org>
Wed, 22 Sep 2021 05:21:22 +0000 (05:21 +0000)
commitcafbd77b3c82167d7dd6958c45373a0e92a0e2c5
tree4e97001ef3d330cc6ebb62ed61db67205dc866e1
parent5c86be0c56d7f250a91c061c00243546d81146ae
lei up: avoid excessively parallel --all

We shouldn't dispatch all outputs right away since they
can be expensive CPU-wise.  Instead, rely on DESTROY to
trigger further redispatches.

This also fixes a circular reference bug for the single-output
case that could lead to a leftover script/lei after MUA exit.

I'm not sure how --jobs/-j should work when the actual xsearch
and lei2mail has it's own parallelism ("--jobs=$X,$M"), but
it's better than having thousands of subtasks running.

Fixes: b34a267efff7b831 ("lei up: fix --mua with single output")
lib/PublicInbox/LEI.pm
lib/PublicInbox/LeiUp.pm