Currently when a plugin errors, it gets autodisabled. This is however completely silent and easy to miss. The result can be degraded data quality or a hole in data in case of export plugins – something to be fixed ASAP.

A PagerDuty integration could come in useful here, allowing an alert to be sent in case of a plugin getting disabled. PagerDuty is tailored for this kind of thing, so this would potentially be better than e.g. an email – that could be easily missed in a sea of emails.

This problem was brought up by a current user of our Snowflake Export Plugin.
posthog/models/team/team.py
import re
from typing import TYPE_CHECKING, Any, List, Optional
import pytz
from django.contrib.postgres.fields import ArrayField
from django.core.validators import MinLengthValidator
from django.db import models
from posthog.constants import AvailableFeature
from posthog.helpers.dashboard_templates import create_dashboard_from_template
from posthog.models.dashboard import Dashboard
from posthog.models.instance_setting import get_instance_setting
from posthog.models.utils import UUIDClassicModel, generate_random_token_project, sane_repr
from posthog.settings.utils import get_list
from posthog.utils import GenericEmails
if TYPE_CHECKING:
    from posthog.models.organization import OrganizationMembership
TIMEZONES = [(tz, tz) for tz in pytz.common_timezones]
DEPRECATED_ATTRS = (
    "plugins_opt_in",
    "opt_out_capture",
    "event_names",
    "event_names_with_usage",
    "event_properties",
    "event_properties_with_usage",
    "event_properties_numerical",
)
class TeamManager(models.Manager):