Skip to content

[PR #2444/29bc71db backport][0.25] Mark distribution update/delete as non-immediate#2452

Merged
mdellweg merged 1 commit into0.25from
patchback/backports/0.25/29bc71dbc78badeefeac12171bcc7d4c16c435d8/pr-2444
Mar 5, 2026
Merged

[PR #2444/29bc71db backport][0.25] Mark distribution update/delete as non-immediate#2452
mdellweg merged 1 commit into0.25from
patchback/backports/0.25/29bc71dbc78badeefeac12171bcc7d4c16c435d8/pr-2444

Conversation

@patchback
Copy link
Copy Markdown

@patchback patchback Bot commented Mar 5, 2026

This is a backport of PR #2444 as merged into main (29bc71d).

AnsibleDistribution lifecycle hooks trigger heavy index rebuilds, so update and delete should not be dispatched with immediate=True. Pulpcore exposes the control of whether this can be run immediately via ALLOW_NON_BLOCKING_UPDATE and ALLOW_NON_BLOCKING_DELETE.

Fixes #2445

📜 Checklist

  • Commits are cleanly separated with meaningful messages (simple features and bug fixes should be squashed to one commit)
  • A changelog entry or entries has been added for any significant changes
  • Follows the Pulp policy on AI Usage
  • (For new features) - User documentation and test coverage has been added

See: Pull Request Walkthrough

AnsibleDistribution lifecycle hooks trigger heavy index rebuilds via
_update_index(), so update and delete should not be dispatched with
immediate=True. Set ALLOW_NON_BLOCKING_UPDATE and ALLOW_NON_BLOCKING_DELETE
to False on AnsibleDistributionViewSet.

Fixes #2445

(cherry picked from commit 29bc71d)
@mdellweg mdellweg merged commit 98af6c5 into 0.25 Mar 5, 2026
13 checks passed
@mdellweg mdellweg deleted the patchback/backports/0.25/29bc71dbc78badeefeac12171bcc7d4c16c435d8/pr-2444 branch March 5, 2026 07:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants