Skip to content

Commit

Permalink
chore(import): sql source v2 for allowlist (#27147)
Browse files Browse the repository at this point in the history
  • Loading branch information
EDsCODE authored Dec 24, 2024
1 parent 9089380 commit 47b983a
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,7 @@ def import_data_activity_sync(inputs: ImportDataActivityInputs):
ExternalDataSource.Type.MYSQL,
ExternalDataSource.Type.MSSQL,
]:
if is_posthog_team(inputs.team_id) or (
settings.TEMPORAL_TASK_QUEUE == DATA_WAREHOUSE_TASK_QUEUE_V2 and is_enabled_for_team(inputs.team_id)
):
if is_posthog_team(inputs.team_id) or is_enabled_for_team(inputs.team_id):
from posthog.temporal.data_imports.pipelines.sql_database_v2 import sql_source_for_type
else:
from posthog.temporal.data_imports.pipelines.sql_database import sql_source_for_type
Expand Down

0 comments on commit 47b983a

Please sign in to comment.