Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

As a user I have automatic syncs for repos so I can stay up-to-date with the remote registry #732

Open
ipanova opened this issue Apr 26, 2022 · 2 comments
Labels

Comments

@ipanova
Copy link
Member

ipanova commented Apr 26, 2022

Is your feature request related to a problem? Please describe.
Enable periodic repo syncing with an upstream registry based on time intervals.
This can potentially be enabled via a periodic task. Remote should be present on the repo in that case.

We can think of whether enable simple periodic sync tasks or introduce a periodic job that will be checking first whether remote repo(s) have changed and trigger sync task respectively.

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context about the feature request here.

@ipanova ipanova changed the title As a use I have automatic syncs for repos so I can stay up-to-date with the remote registry As a user I have automatic syncs for repos so I can stay up-to-date with the remote registry Apr 26, 2022
@ipanova ipanova added the Low label Jul 13, 2022
@ipanova ipanova removed the Low label Aug 19, 2022
@lubosmj
Copy link
Member

lubosmj commented Nov 9, 2023

It makes sense to implement this in pulpcore.

We have a facility for dispatching periodic tasks, as mentioned here: #1268 (comment).

@lubosmj
Copy link
Member

lubosmj commented Nov 9, 2023

So, we can use the post-migrate hook that will create a task which periodically runs in the background, inspects repositories with remotes attached, and runs a sync task if the frequency conditions are met. We would need to add another field to the repository model -- "sync_frequency".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Not Started
Development

No branches or pull requests

2 participants