Could you have a background job that updates it every hour? On Thu, 23 Jul 2020 at 19:35, Sladyn Nunes <[email protected]> wrote:
> Hi all, > > This discussion thread pertains to the [GSoC 2020] Custom Distribution > Service Project feature implementation decision that the GsoC team would > like feedback on. Basically the problem right now is that the update > center.json is quite a big file and making an api call to it takes a > minimum of 30 seconds, therefore we would like to know out of the below two > designs which one would users prefer: > > a) We download the update-center.json and store it in a temporary folder, > every time the service is started and thus for the entire duration of the > running of the service we would be able to make use of this file. On exit > or shutdown of this service the temporary folder is deleted. > > b) We persist the update-center.json and store it only when the service is > started for the first time and on every subsequent run thereafter we would > not make any api call. Instead we would provide the user with a button on > the UI saying that "Hey the update center has not been updated for x amount > of time would you like to pull in the latest changes" > > Would love to get some feedback on this thread > > Thanks and Cheers > > -- > You received this message because you are subscribed to the Google Groups > "Jenkins Developers" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jenkinsci-dev/1bf950ef-edee-47c6-bbdd-a95566778891o%40googlegroups.com > <https://groups.google.com/d/msgid/jenkinsci-dev/1bf950ef-edee-47c6-bbdd-a95566778891o%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "Jenkins Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CAH-3BienkmakyNsofM15uszM-EgbSdjPGnZNyXqLd6R74%3De4ig%40mail.gmail.com.
