Adding a new external service that syncs slowly results in 504 Gateway Timeout
Created by: mrnugget
I'm not sure whether we have covered this in any other ticket yet or whether it's a known issue already. It's probably highly related to the idea of turning slow operations into asynchronous ones, but maybe there's an easier fix (such as increasing a timeout somewhere)
Steps to reproduce:
- Go to https://k8s.sgdev.org/site-admin/external-services
- Add a new external service that sync really slowly, e.g. the GHE service we have in
dev-private
with this config that has tworepositoryQuery
that both yield a ton of repos:
{
"url": "https://ghe.sgdev.org",
"token": "<foobar>",
"repositoryQuery": [
"public",
"affiliated"
]
}
- Click "Add external service" and watch spinner
Expected behavior:
Request takes a loooong time but ultimately succeeds
Actual behavior:
- Spinner stops
- No confirmation that creation has been successful
- External service has been created (!)
- network tab shows that request resulted in
504 Gateway Timeout