Project

Profile

Help

Issue #6724

closed

Some consumer profiles are missed when calculating batch regenerate applicability for repo

Added by hyu over 4 years ago. Updated over 4 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
-
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
3. High
Version:
Platform Release:
2.21.3
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Katello, Pulp 2
Sprint:
Sprint 74
Quarter:

Description

Pulp calculates the applicability for repo in the batch size of 10 but the profiles of the 10th consumer in the batch will always be skipped.

For example, if you have 20 consumers, the 10th and 20th consumers will always get 0 applicability because the calculations are skipped.

Below is the offending code:

server/managers/consumer/applicability.py if len(profiles_to_process) < batch_size: <========= The last profiles in the batch is no including profiles_to_process.append((repo_id, all_profiles_hash, profiles)) else: batch_regenerate_applicability_task.apply_async( (profiles_to_process,), **{'group_id': task_group_id}) profiles_to_process = []

Also available in: Atom PDF