On Mon, Sep 13, 2021 at 12:49:21PM -0600, Tim Flink wrote:

> +        # this is a hotfix hack to work around the sudden config change in 
> rhbz where the max
> +        # number of bugs returned for a query is 20
> +        # it seems to be working for now but may need more work going forward
> +        while last_query_len == BUGZILLA_QUERY_LIMIT:
> +
> +            new_query = self.get_bz_query(tracker, last_update, 
> offset=len(buglist))
> +            new_buglist = self.bz.query(new_query)
> +            buglist.extend(new_buglist)
> +            last_query_len = len(new_buglist)

FYI: This algorithm has a race condition, see also:
https://github.com/python-bugzilla/python-bugzilla/issues/149#issuecomment-918213094

Cheers
Till
_______________________________________________
infrastructure mailing list -- infrastructure@lists.fedoraproject.org
To unsubscribe send an email to infrastructure-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/infrastructure@lists.fedoraproject.org
Do not reply to spam on the list, report it: 
https://pagure.io/fedora-infrastructure

Reply via email to