From ee187285e503e7c1303f7ca1e405ff11f4a28f9b Mon Sep 17 00:00:00 2001 From: Yakko Majuri <38760734+yakkomajuri@users.noreply.github.com> Date: Thu, 22 Sep 2022 16:28:20 -0300 Subject: [PATCH] feat: remove 0007 async migration guard (#11934) --- .../migrations/0007_persons_and_groups_on_events_backfill.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/posthog/async_migrations/migrations/0007_persons_and_groups_on_events_backfill.py b/posthog/async_migrations/migrations/0007_persons_and_groups_on_events_backfill.py index ad6e2d3698b..d220fcffbdf 100644 --- a/posthog/async_migrations/migrations/0007_persons_and_groups_on_events_backfill.py +++ b/posthog/async_migrations/migrations/0007_persons_and_groups_on_events_backfill.py @@ -13,7 +13,6 @@ from posthog.async_migrations.disk_util import analyze_enough_disk_space_free_fo from posthog.async_migrations.utils import execute_op_clickhouse, run_optimize_table, sleep_until_finished from posthog.client import sync_execute from posthog.models.event.sql import EVENTS_DATA_TABLE -from posthog.models.instance_setting import get_instance_setting logger = structlog.get_logger(__name__) @@ -91,9 +90,6 @@ class Migration(AsyncMigrationDefinition): } def precheck(self): - # Used to guard against self-hosted users running on `latest` while we make tweaks to the migration - if not settings.TEST and not get_instance_setting("ALLOW_EXPERIMENTAL_ASYNC_MIGRATIONS"): - return (False, "ALLOW_EXPERIMENTAL_ASYNC_MIGRATIONS is set to False") return analyze_enough_disk_space_free_for_table(EVENTS_DATA_TABLE(), required_ratio=2.0) def is_required(self) -> bool: