]> Sergey Matveev's repositories - public-inbox.git/commit
daemons: revamp periodic cleanup task
authorEric Wong <e@80x24.org>
Thu, 23 Sep 2021 00:46:25 +0000 (00:46 +0000)
committerEric Wong <e@80x24.org>
Thu, 23 Sep 2021 04:52:09 +0000 (04:52 +0000)
commit63d7b8ceee55a34cde983e8548d5ce61050d2891
treeb893451f9164ce2c7c8f48664ca00865427e24c7
parent356439a571c536eaa487031802b436d087113f4f
daemons: revamp periodic cleanup task

Neither Inboxes nor ExtSearch objects were retrying correctly
when there are live git processes, but the inboxes were getting
rescanned for search or other reasons.  Ensure the scan retries
eventually if there's live processes.

We also need to update the cleanup task to detect Xapian shard
count changes, since Xapian ->reopen is enough to detect any
other Xapian changes.  Otherwise, we just issue an inexpensive
->reopen call and let Xapian check whether there's anything
worth reopening.

This also lets us eliminate the Devel::Peek dependency.
ci/deps.perl
lib/PublicInbox/Admin.pm
lib/PublicInbox/ExtSearch.pm
lib/PublicInbox/Git.pm
lib/PublicInbox/Inbox.pm
lib/PublicInbox/Search.pm
t/extsearch.t