# What this PR does This PR: - modifies the `check_escalation_finished_task` celery task to: - do stricter escalation validation based on the alert group's escalation snapshot (see the `audit_alert_group_escalation` method in `engine/apps/alerts/tasks/check_escalation_finished.py` for the validation logic) - use a read-only database for querying alert-groups if one is configured, otherwise use the "default" one - ping a configurable heartbeat (new env var `ALERT_GROUP_ESCALATION_AUDITOR_CELERY_TASK_HEARTBEAT_URL` added) - increase the task frequency from every 10 to every 13 minutes (this can be configured via an env variable) - adds public documentation on how to configure this auditor task - modifies the local celery startup command to properly take into consideration all celery related env vars (similar to the ones we use in `engine/celery_with_exporter.sh`; this made it easier to enable `celery beat` locally for testing) - removes the following code: - removes references to `AlertGroup.estimate_escalation_finish_time` and marks the model field as deprecated using the [`django-deprecate-fields` library](https://pypi.org/project/django-deprecate-fields/). This field was only used for the previous version of this validation task - `EscalationSnapshotMixin.calculate_eta_for_finish_escalation` was only used to calculate the value for `AlertGroup.estimate_escalation_finish_time` - `calculate_escalation_finish_time` celery task ## Which issue(s) this PR fixes https://github.com/grafana/oncall-private/issues/1558 ## Checklist - [x] Tests updated - [x] Documentation added - [x] `CHANGELOG.md` updated
44 lines
1.1 KiB
Text
44 lines
1.1 KiB
Text
RUNSERVER_PORT=8080
|
|
|
|
SLACK_CLIENT_OAUTH_ID=
|
|
SLACK_CLIENT_OAUTH_SECRET=
|
|
SLACK_API_TOKEN=
|
|
SLACK_API_TOKEN_COMMON=
|
|
SLACK_SLASH_COMMAND_NAME=/oncall
|
|
|
|
TELEGRAM_WEBHOOK_HOST=
|
|
TELEGRAM_TOKEN=
|
|
|
|
TWILIO_ACCOUNT_SID=
|
|
TWILIO_VERIFY_SERVICE_SID=
|
|
TWILIO_AUTH_TOKEN=
|
|
TWILIO_NUMBER=
|
|
|
|
DJANGO_SETTINGS_MODULE=settings.dev
|
|
SECRET_KEY=jyRnfRIeMjYfKdoFa9dKXcNaEGGc8GH1TChmYoWW
|
|
BASE_URL=http://localhost:8080
|
|
|
|
FEATURE_TELEGRAM_INTEGRATION_ENABLED=True
|
|
FEATURE_SLACK_INTEGRATION_ENABLED=True
|
|
FEATURE_EXTRA_MESSAGING_BACKENDS_ENABLED=
|
|
|
|
SLACK_INSTALL_RETURN_REDIRECT_HOST=http://localhost:8080
|
|
SOCIAL_AUTH_REDIRECT_IS_HTTPS=False
|
|
|
|
GRAFANA_INCIDENT_STATIC_API_KEY=
|
|
GRAFANA_API_URL=http://localhost:3000
|
|
|
|
CELERY_WORKER_QUEUE="default,critical,long,slack,telegram,webhook,retry,celery"
|
|
CELERY_WORKER_CONCURRENCY=3
|
|
CELERY_WORKER_MAX_TASKS_PER_CHILD=100
|
|
CELERY_WORKER_SHUTDOWN_INTERVAL=65m
|
|
CELERY_WORKER_BEAT_ENABLED=True
|
|
CELERY_WORKER_DEBUG_LOGS=False
|
|
|
|
RABBITMQ_USERNAME=rabbitmq
|
|
RABBITMQ_PASSWORD=rabbitmq
|
|
RABBITMQ_HOST=rabbitmq
|
|
RABBITMQ_PORT=5672
|
|
RABBITMQ_DEFAULT_VHOST="/"
|
|
|
|
REDIS_URI=redis://redis:6379/0
|