Network maintenance. Planio will be observing two scheduled maintenance windows this Tuesday, March 2 and Wednesday, March 3 from 02:00 UTC until 06:00 UTC each in order to perform maintenance on access routers in our primary datacenter. Your account might observe short downtimes during these periods up to several minutes at a time.
Pulp - Story #3209: As a user, I have Repository Versions
Move publish logic from Publisher model to a task
This task is to:
- Create a celery task called `publish` in pulp_file.app.tasks.py
- define a POST detail route called publish on FilePublisherViewset that deploys the celery task. This viewset should accept `repository` or `repository_version` as a POST body parameter. If `repository` is passed, the latest version should be determined and used as `repository_version`.
The logic defined in the task should be taken from models.FilePublisher.publish. Validation and setting the working directory from pulpcore.tasks.publisher.publish should also be added to this task.
Plugin writer needs to dispatch a task with a reservation for the repository it is publishing.
Plugin writer needs to make sure the publication is added as a created resource for the task. Look at the core publishing task for the example of that.
#7 Updated by firstname.lastname@example.org about 3 years ago
- Status changed from ASSIGNED to NEW
- Assignee deleted (
I started this work but I don't have time to finish
Please register to edit this issue