Project

Profile

Help

Task #2398

closed

Convert celery task repo.publish to Pulp 3

Added by ttereshc over 7 years ago. Updated over 4 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Category:
-
Sprint/Milestone:
Start date:
Due date:
% Done:

100%

Estimated time:
Platform Release:
Groomed:
Yes
Sprint Candidate:
Yes
Tags:
Sprint:
Sprint 20
Quarter:

Description

Task name in Pulp 2: `pulp.server.managers.repo.publish.publish`.
Task implementation in Pulp 2: https://github.com/pulp/pulp/blob/3.0-dev/server/pulp/server/controllers/repository.py#L1039

1. Query for the instance of the Publisher's Master model that needs to publish.
2. Cast that Publisher master instance to a detail instance
3. Set the working_dir attribute on the detail instance with the working_dir context manager.
4. Call publish (it should take no arguments)

The comments in platform/pulp/plugin/models/publisher.py need to be revised.


Related issues

Related to Pulp - Task #2380: Create a redmine task for each 2.y celery task to be converted to 3.0CLOSED - CURRENTRELEASEttereshc

Actions

Also available in: Atom PDF