Closed
Description
The delete_ids
function has the @Retry decorator:
@retry(wait=wait_random(min=0.1, max=2), stop=(stop_after_delay(30)))
def delete_ids(self, ids: List[str]) -> bool:
"""Delete works from the buckets backend with the given ids.
Args:
ids (List[str]): The IDs of the works to delete.
Returns:
bool: Whether the works were deleted successfully.
"""
with self.session as session:
response: Response = session.delete(
url=f"{self.baseurl}/work", params={"ids": ids}
)
response.raise_for_status()
return response.json()
When handling more than 100 works, it raises RetryError exception.