Skip to content

Commit

Permalink
Moves TaskGroup.finish() to outside the loop in the replication task
Browse files Browse the repository at this point in the history
fixes: pulp#4175
  • Loading branch information
dkliban committed Jul 27, 2023
1 parent 33ed9a7 commit 7b7ba97
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGES/4175.bugfix
@@ -0,0 +1,2 @@
Fixed bug where the Task Group for replication would be marked as fully dispatched after just one
replicator.
2 changes: 1 addition & 1 deletion pulpcore/app/tasks/replica.py
Expand Up @@ -98,4 +98,4 @@ def replicate_distributions(server_pk):
distro_names.append(distro["name"])

replicator.remove_missing(distro_names)
task_group.finish()
task_group.finish()

0 comments on commit 7b7ba97

Please sign in to comment.