Skip to content

Commit

Permalink
Expose tasks in the plugin api
Browse files Browse the repository at this point in the history
fixes #9418
  • Loading branch information
David Davis authored and daviddavis committed Sep 22, 2021
1 parent 3e65dac commit 17d9237
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGES/plugin_api/9418.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Exposed tasks ``general_create``, ``general_create_from_temp_file``, ``general_delete``,
``general_update``, ``orphan_cleanup``, and ``reclaim_space`` in the plugin api.
8 changes: 7 additions & 1 deletion pulpcore/app/tasks/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
from pulpcore.app.tasks import base, repository, upload # noqa

from .base import general_multi_delete # noqa
from .base import ( # noqa
general_create,
general_create_from_temp_file,
general_delete,
general_multi_delete,
general_update,
)

from .export import fs_publication_export, fs_repo_version_export # noqa

Expand Down
8 changes: 7 additions & 1 deletion pulpcore/plugin/tasking.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,14 @@
from pulpcore.tasking.tasks import dispatch # noqa

from pulpcore.app.tasks import ( # noqa
general_multi_delete,
fs_publication_export,
fs_repo_version_export,
general_create,
general_create_from_temp_file,
general_delete,
general_multi_delete,
general_update,
orphan_cleanup,
reclaim_space,
)
from pulpcore.app.tasks.repository import add_and_remove # noqa

0 comments on commit 17d9237

Please sign in to comment.