Skip to content

Commit

Permalink
Use general_multi_delete from core.
Browse files Browse the repository at this point in the history
  • Loading branch information
ipanova committed Nov 11, 2021
1 parent d6167a7 commit b0231b2
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 29 deletions.
1 change: 1 addition & 0 deletions CHANGES/9562.misc
@@ -0,0 +1 @@
Use general_multi_delete from pulpcore.plugin.tasking
1 change: 0 additions & 1 deletion pulp_container/app/tasks/__init__.py
@@ -1,4 +1,3 @@
from .base import general_multi_delete # noqa
from .builder import build_image_from_containerfile # noqa
from .recursive_add import recursive_add_content # noqa
from .recursive_remove import recursive_remove_content # noqa
Expand Down
25 changes: 0 additions & 25 deletions pulp_container/app/tasks/base.py

This file was deleted.

6 changes: 3 additions & 3 deletions pulp_container/app/viewsets.py
Expand Up @@ -28,7 +28,7 @@
RepositorySyncURLSerializer,
)
from pulpcore.plugin.models import Artifact, Content
from pulpcore.plugin.tasking import dispatch
from pulpcore.plugin.tasking import dispatch, general_multi_delete
from pulpcore.plugin.viewsets import (
AsyncUpdateMixin,
DistributionViewSet,
Expand Down Expand Up @@ -1222,7 +1222,7 @@ def destroy(self, request, pk, **kwargs):
)

async_result = dispatch(
tasks.general_multi_delete, exclusive_resources=reservations, args=(instance_ids,)
general_multi_delete, exclusive_resources=reservations, args=(instance_ids,)
)
return OperationPostponedResponse(async_result, request)

Expand Down Expand Up @@ -1392,6 +1392,6 @@ def destroy(self, request, pk, **kwargs):
(str(namespace.pk), "container", "ContainerNamespaceSerializer"),
)
async_result = dispatch(
tasks.general_multi_delete, exclusive_resources=reservations, args=(instance_ids,)
general_multi_delete, exclusive_resources=reservations, args=(instance_ids,)
)
return OperationPostponedResponse(async_result, request)

0 comments on commit b0231b2

Please sign in to comment.