File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
src/sentry/integrations/github/tasks Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 4545 processing_deadline_duration = 120 ,
4646 silo_mode = SiloMode .CONTROL ,
4747)
48- @retry (exclude = ( RepoExistsError , KeyError ) )
48+ @retry ()
4949def sync_repos_for_org (organization_integration_id : int ) -> None :
5050 """
5151 Sync repositories for a single OrganizationIntegration.
@@ -76,14 +76,17 @@ def sync_repos_for_org(organization_integration_id: int) -> None:
7676 return
7777
7878 organization_id = oi .organization_id
79- rpc_org = organization_service .get (id = organization_id )
80- if rpc_org is None :
79+ org_context = organization_service .get_organization_by_id (
80+ id = organization_id , include_projects = False , include_teams = False
81+ )
82+ if org_context is None :
8183 logger .info (
8284 "sync_repos_for_org.missing_organization" ,
8385 extra = {"organization_id" : organization_id },
8486 )
8587 return
8688
89+ rpc_org = org_context .organization
8790 if not features .has ("organizations:github-repo-auto-sync" , rpc_org ):
8891 return
8992
You can’t perform that action at this time.
0 commit comments