From: Dan Mick Date: Sat, 5 Dec 2020 02:16:43 +0000 (+0000) Subject: quay-pruner: add page limit constants for hacking/debugging X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=cb718b26959e62559b6712e671386f3f4faa56cc;p=ceph-build.git quay-pruner: add page limit constants for hacking/debugging Signed-off-by: Dan Mick --- diff --git a/quay-pruner/build/prune-quay.py b/quay-pruner/build/prune-quay.py index 46537742a..705907393 100755 --- a/quay-pruner/build/prune-quay.py +++ b/quay-pruner/build/prune-quay.py @@ -9,13 +9,17 @@ import sys QUAYBASE = "https://quay.ceph.io/api/v1" REPO = "ceph-ci/ceph" +# quay page ranges to fetch; hackable for testing +start_page = 1 +page_limit = 100000 + def get_all_quay_tags(quaytoken): - page = 1 + page = start_page has_additional = True ret = list() - while has_additional: + while has_additional and page < page_limit: try: response = requests.get( '/'.join((QUAYBASE, 'repository', REPO, 'tag')),