Project

Profile

Help

Refactor #3260

Updated by amacdona@redhat.com almost 7 years ago

This task is to: 
 # Create a celery task called `sync` in pulp_file.app.tasks.py 
 # define a POST detail route called sync on FileImporterViewset that deploys the celery task locks defined in https://pulp.plan.io/issues/3186. with repository version, repository, and importer locks. 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.

Back