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: #4175
  • Loading branch information
dkliban committed Jul 28, 2023
1 parent 33ed9a7 commit 4ced14e
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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
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 4ced14e

Please sign in to comment.