Project

Profile

Help

Task #7009

Updated by ttereshc over 4 years ago

### Problem 

 Currently a task is created for every pulp3 repo, regardless whether it is fully migrated or not. If everything has been migrated , task won't perform much work but there are still DB calls with attempts to create some resources or to check their existence. 

 ### Solution 
 1. Check whether there are any unmigrated resources. If not, finish migration task, don't trigger any child ones. 
 2. 

 Before creating a task check whether all resources have been migrated for the specified pulp 3 repo. 
 If at least one requires a migration, create a task. 

 
 Resources to check: pulp2repository, pulp2importer, pulp2distributor.

Back