pulp / pulp/pulpcore

Post-publish hook

Open
#4,785 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Feature
Dominant language
Python
Stars
598
Forks
168
Avg merge
1d 4h
Merged PRs (30d)
86

Description

Is your feature request related to a problem? Please describe.

We are part of the packages.microsoft.com team and want a more optimal way to clear certain files from our Content Delivery Network when we publish new when publishing new content

Describe the solution you'd like

We would like a script to clear out the cache in our CDN anytime new content is published so we are able to resolve those cache issues. We would want a post-publish hook to run a script and this is most likely where the place should be in the code https://github.com/pulp/pulpcore/blob/00c885db9d866274562fd2621a23381422602f62/pulpcore/app/models/publication.py#L204

Describe alternatives you've considered

The current solution we are working on is having to monitor the publish tasks and wait for one to complete before clearing files from the CDN cache service.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Read pulpcore/app/models/publication.py around line 204 to understand the publication flow and where a post-publish hook could run. Check the existing publication task behavior and determine what completion should expose for running a CDN cache-clearing script after new content is published.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.