Skip to content

Commit

Permalink
python: discourage from deleting objects while paginating over them
Browse files Browse the repository at this point in the history
Fix #3039
  • Loading branch information
FrostyX authored and nikromen committed May 13, 2024
1 parent faa8fd8 commit c3691ef
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions python/docs/client_v3/pagination.rst
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,12 @@ And finally, in some cases, it may be useful to iterate through all objects, but
Munch({'id': 5, 'ownername': '@copr', 'projectname': 'copr', 'state': 'canceled', ...})


.. warning::
Don't remove projects, packages, builds, etc while paginating over them. It
may result in skipping some results. Instead, query all objects (using
pagination) first, and then delete them.


Pagination parameters
---------------------

Expand Down

0 comments on commit c3691ef

Please sign in to comment.