Skip to content

Update response code for container registry api bulk delete

What does this MR do?

This merge updates the container registry API bulk delete endpoint to return 400 if the same request is made multiple times within 1 hour. The worker that the endpoint creates was checking the lease, but since the lease status is required in order to send the proper response, the code to check the lease was moved from the worker to a new service that checks the lease and only runs the worker if there is not a current lease. This allows the service to inform the API endpoint which response to return (202 or 400).

Does this MR meet the acceptance criteria?

Conformity

Performance and testing

Closes #62183 (closed)

Edited by Mayra Cabrera

Merge request reports