]> git.ipfire.org Git - pbs.git/commit
messages: Fetch messages in badges
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 5 Feb 2025 16:20:19 +0000 (16:20 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 5 Feb 2025 16:20:19 +0000 (16:20 +0000)
commit2f57edae707d81cbefcebda47c4191c4d851e401
treeeaa0b13805c4ce1a2c1b57ef1a21b61b3ae7fff3
parent857147978ab59d9015f6a08fb320dc5f67e47082
messages: Fetch messages in badges

We would have otherwise looped for forever since we cannot check in
advance whether the iterator actually has any elements, but we don't
want to connect to the mail relay if there is literally nothing to send.
So as a compromise we fetch messages in batches.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/buildservice/messages.py