Task #6672: [Epic] Upload Process Improvements
As a subclasser of the collection upload viewset, I can customize the task I'm dispatching to instead of always using import_collection
Currently there are two Galaxy viewsets that provide collection import functionality.
The subclasser wants to be able to provide their own task to perform collection import. As long as these viewsets hard-code the task that isn't possible.
- Add a new internal method named
- The viewsets currently save an Artifact, but this should be a temporary file instead. Artifacts are for permanent storage, but the need here is only to save something temporarily until the backend task can analyze it and then save it.
_dispatch_import _collection_task()needs to form its own locks. The default lock should only lock on the repository it is being imported to. By default it should use the pulp_ansible.app.tasks.import_collection like it does today.
Updated by Anonymous over 3 years ago
- Status changed from POST to MODIFIED
- % Done changed from 0 to 100
Applied in changeset pulp_ansible|6c733e342e8aa3b96abee5273fd4728ae0838bdb.