]> Sergey Matveev's repositories - public-inbox.git/commit
ipc: support setting a locked number of WQ workers
authorEric Wong <e@80x24.org>
Sun, 21 Feb 2021 07:41:32 +0000 (07:41 +0000)
committerEric Wong <e@80x24.org>
Sun, 21 Feb 2021 08:59:32 +0000 (08:59 +0000)
commit707d4aca2256f284718c247ef00db64cd976d244
treedc3b7100b6a50e0df55528fd7875af28d4f66b5a
parent07bb4d74f25b0c2c14a8762905087be5a0f7e934
ipc: support setting a locked number of WQ workers

We can use this to ensure sharded work doesn't do unexpected
things if workers are added/removed.  We currently don't
increase/decrease workers once a workqueue is started, but
non-lei code (-httpd/imapd) may start doing so.

This also fixes a bug where lei2mail workers could not
be adjusted via --jobs on the command-line.
lib/PublicInbox/IPC.pm
lib/PublicInbox/LeiQuery.pm
lib/PublicInbox/LeiXSearch.pm