Project

Profile

Help

Task #7009

closed

Do not create a child task for already migrated repos

Added by ttereshc almost 4 years ago. Updated about 3 years ago.

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

100%

Estimated time:
Platform Release:
Groomed:
Yes
Sprint Candidate:
No
Tags:
Sprint:
Sprint 92
Quarter:

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

  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. https://github.com/pulp/pulp-2to3-migration/blob/master/pulp_2to3_migration/app/migration.py#L270

Actions #1

Updated by ttereshc almost 4 years ago

  • Description updated (diff)
Actions #2

Updated by ipanova@redhat.com almost 4 years ago

  • Description updated (diff)
  • Groomed changed from No to Yes
Actions #3

Updated by ttereshc over 3 years ago

  • Sprint/Milestone deleted (0.2.0)
Actions #4

Updated by ipanova@redhat.com about 3 years ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to ipanova@redhat.com
  • Sprint set to Sprint 92
Actions #5

Updated by ipanova@redhat.com about 3 years ago

  • Status changed from ASSIGNED to MODIFIED
  • % Done changed from 0 to 100
Actions #6

Updated by ttereshc about 3 years ago

  • Sprint/Milestone set to 0.9.0
Actions #7

Updated by pulpbot about 3 years ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

Also available in: Atom PDF