pbylicki / rfhub2

Rewrite of rfhub with FastAPI
Apache License 2.0
30 stars 10 forks source link

Does rfhub2 implement some watchdogs? #453

Open elrandira opened 2 years ago

elrandira commented 2 years ago

Is rfhub2 able to auto-update if the content of paths provided update?

MaciejWiczk commented 2 years ago

Hi @elrandira currently it does not, but I think it could benefit from one. Or maybe external Watchdog could trigger rfhub2-cli to run specific command. What are your needs?

elrandira commented 2 years ago

hi @MaciejWiczk

I am currently running rfhub2 on a dedicated docker alpine image with Kubernetes. I need to regularly watch if there are any update in a local repository that is maintained up-to-date by another process (jenkins pipeline with push notifier). My idea at the moment is just to have a shell loop that would "rfhub2-cli --load-mode=update" on the folder.

MaciejWiczk commented 2 years ago

@elrandira we had a similar pipeline, and we had multiple repositories that we sent to rfhub2 that was running on K8s. We had a single job, that was checking out all repositories we used, and populated rhub2 using the same command You are. This single job, was triggered by every commint/merge in watched repositories, as a step in other pipelines in Jenkins. See docs here. Maybe this is a solution, that would also for You?

elrandira commented 2 years ago

that's basically what I am doing. Thanks for the tips Maciej :)