Skip to content

Commit a96a427

Browse files
dklibandralley
authored andcommitted
Dispatch replication task with shared [server] resources.
fixes: #7520
1 parent 564c25b commit a96a427

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

CHANGES/7520.bugfix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Fixed a bug where a worker would start running `finalize_replication` task before the
2+
`replicate_distributions` task finishes.

pulpcore/app/viewsets/replica.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ def replicate(self, request, pk):
134134
dispatch(
135135
replicate_distributions,
136136
exclusive_resources=exclusive_resources,
137+
shared_resources=[server],
137138
kwargs={"server_pk": pk},
138139
task_group=task_group,
139140
)

0 commit comments

Comments
 (0)