You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@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.
The text was updated successfully, but these errors were encountered:
The
delete_ids
function has the @Retry decorator:When handling more than 100 works, it raises RetryError exception.
The text was updated successfully, but these errors were encountered: