Skip to content

Commit

Permalink
ref(hc): Do not run default project setup for non self hosted cases.
Browse files Browse the repository at this point in the history
  • Loading branch information
corps committed Sep 19, 2023
1 parent 9b865e3 commit 0960060
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/sentry/receivers/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
from sentry.services.hybrid_cloud.util import region_silo_function
from sentry.signals import post_upgrade, project_created
from sentry.silo import SiloMode
from sentry.utils.settings import is_self_hosted

PROJECT_SEQUENCE_FIX = """
SELECT setval('sentry_project_id_seq', (
Expand All @@ -39,6 +40,9 @@ def wrapped(*args, **kwargs):


def create_default_projects(**kwds):
if not is_self_hosted():
return

create_default_project(
# This guards against sentry installs that have SENTRY_PROJECT set to None, so
# that they don't error after every migration. Specifically for single tenant.
Expand Down

0 comments on commit 0960060

Please sign in to comment.