Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Async event mapping for all Postgres instances #3626

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions posthog/models/event.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,8 @@ def create(self, site_url: Optional[str] = None, *args: Any, **kwargs: Any):
should_post_webhook and team and team.slack_incoming_webhook and not is_ee_enabled()
): # ee will handle separately
celery.current_app.send_task("posthog.tasks.webhooks.post_event_to_webhook", (event.pk, site_url))
else:
celery.current_app.send_task("posthog.tasks.webhooks.post_event_to_webhook", (event.pk, site_url))

return event

Expand Down
2 changes: 1 addition & 1 deletion posthog/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ def print_warning(warning_lines: Sequence[str]):
ASYNC_EVENT_ACTION_MAPPING = get_from_env("ASYNC_EVENT_ACTION_MAPPING", False, type_cast=strtobool)

# Enable if ingesting with the plugin server into postgres, as it's not able to calculate the mapping on the fly
if PLUGIN_SERVER_INGESTION and PRIMARY_DB == RDBMS.POSTGRES:
if PRIMARY_DB == RDBMS.POSTGRES:
ASYNC_EVENT_ACTION_MAPPING = True

ASYNC_EVENT_PROPERTY_USAGE = get_from_env("ASYNC_EVENT_PROPERTY_USAGE", True, type_cast=strtobool)
Expand Down