grails / grails3-plugins

Grails 3 plugin portal
https://grails.org/plugins.html
Apache License 2.0
3 stars 6 forks source link

Grails plugin portal goes down every time three days and must be reset #33

Open niravassar opened 2 years ago

niravassar commented 2 years ago

Grails plugins page at https://plugins.grails.org/ shows 0 plugins sometimes and we have to go in an restart it. then it works again.

I took at look at this in depth and will post some notes

niravassar commented 2 years ago

How does the application Work

in the job, there is process(). this calls grailsPluginRepository. and this gets info about 1 plugin.

niravassar commented 2 years ago

Theory on Whats Going on

Recreate on Local

niravassar commented 2 years ago

Minimally Invasive Proposed Solution

niravassar commented 2 years ago

More involved solution

Untangle the tasks by only creating one task per plugin. Each plugin will have one task and the http calls will be consecutively run to get repo information, readme information and owner information. They will only execute if the previous one completes successfully and will be synchronous.

However, the tasks between plugins will be aysnchrous as the next plugin will fire out a task as well. here is the PR https://github.com/grails/grails3-plugins/pull/35