Skip to content

[BUG] buckets.delete_ids causes retryerror #132

Closed
@odarotto

Description

@odarotto

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.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions