Skip to content

Handle revoked tokens during sync

Created by: ryanslade

If we fail to sync a user owned external service because the token has been revoked we should remove all mapped repos for that external service from external_service_repos immediately.

Our current behaviour is to handle all errors as transient and back off to try again which leaves us open to the risk that once we support private code some of it could be left around after a token is revoked.