Task #7009
closedDo not create a child task for already migrated repos
100%
Description
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¶
- Check whether there are any unmigrated resources. If not, finish migration task, don't trigger any child ones.
- 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. https://github.com/pulp/pulp-2to3-migration/blob/master/pulp_2to3_migration/app/migration.py#L270
Updated by ipanova@redhat.com over 4 years ago
- Description updated (diff)
- Groomed changed from No to Yes
Updated by ipanova@redhat.com almost 4 years ago
- Status changed from NEW to ASSIGNED
- Assignee set to ipanova@redhat.com
- Sprint set to Sprint 92
Added by ipanova@redhat.com almost 4 years ago
Added by ipanova@redhat.com almost 4 years ago
Revision 9df621c0 | View on GitHub
Optimize tasks creations.
https://pulp.plan.io/issues/7009 https://pulp.plan.io/issues/8314
Added by ipanova@redhat.com almost 4 years ago
Revision 9df621c0 | View on GitHub
Optimize tasks creations.
https://pulp.plan.io/issues/7009 https://pulp.plan.io/issues/8314
Updated by ipanova@redhat.com almost 4 years ago
- Status changed from ASSIGNED to MODIFIED
- % Done changed from 0 to 100
Applied in changeset pulp:pulp-2to3-migration|9df621c04e1f825ef57b21f7c114f98f76b2e5b1.
Updated by pulpbot almost 4 years ago
- Status changed from MODIFIED to CLOSED - CURRENTRELEASE
Optimize tasks creations.
closes #7009 closes #8314
https://pulp.plan.io/issues/7009 https://pulp.plan.io/issues/8314