Project

Profile

Help

Task #2399

closed

Convert celery task repo.sync 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 19
Quarter:

Description

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

The 2.y implementation does a huge amount of things we don't need to do anymore. The 3.0 implementation should do the following:

1. Query for the instance of the Importer's Master model that needs to be synced
2. Cast that Importer master instance to a detail instance
3. Set the working_dir attribute on the detail instance. This was part of issue #2456
4. Call sync (it should take no arguments)


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
Related to Pulp - Task #2456: Add working directory management to sync/publish task plumbing.CLOSED - NOTABUG

Actions

Also available in: Atom PDF