Project

Profile

Help

Refactor #3260

closed

Pulp - Story #3209: As a user, I have Repository Versions

Move sync logic from Importer model to a task

Added by amacdona@redhat.com over 4 years ago. Updated over 2 years ago.

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

100%

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

Description

This task is to:

  1. Create a celery task called `sync` in pulp_file.app.tasks.py
  2. define a POST detail route called sync on FileImporterViewset that deploys the celery task with reservation for the repository. This viewset should accept `repository` as a POST body parameter.

The logic defined in the task should be taken from models.FileImporter.sync. Validation and setting the working directory from pulpcore.tasks.importer.sync should also be added to this task.


Related issues

Related to Pulp - Refactor #3074: Move sync logic from models to tasksCLOSED - CURRENTRELEASEamacdona@redhat.com

Actions
Copied to File Support - Refactor #3296: Move publish logic from Publisher model to a taskCLOSED - CURRENTRELEASEamacdona@redhat.com

Actions

Also available in: Atom PDF