Catalog.sync takes 20 minutes

I have been experiencing this issue for last few versions of truenas scale. Not sure when it started but 95% of the time if I do a manual apps catalog update it takes around 20minutes. Nothing else on the server is slow just updating the apps catalog.

Can anyone tell me how to run the update manually within the cli with any debug output that might show the holdup. I thought the sync was just pulling the git repository. Open to anyone’s Ideas