Skip to content
Draft
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
1 change: 1 addition & 0 deletions config/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -579,6 +579,7 @@
if ADSERVER_EXT:
INSTALLED_APPS.append("ethicalads_ext.etl")
INSTALLED_APPS.append("ethicalads_ext.support")
INSTALLED_APPS.append("ethicalads_ext.monitoring")

# Whether Do Not Track is enabled for the ad server
ADSERVER_DO_NOT_TRACK = False
Expand Down
6 changes: 6 additions & 0 deletions config/settings/production.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,12 @@
"task": "ethicalads_ext.etl.tasks.daily_etl_pipeline",
"schedule": crontab(hour="2", minute="0"),
}
if "ethicalads_ext.monitoring" in INSTALLED_APPS:
# Publish queue depth to CloudWatch for celery ASG autoscaling
CELERY_BEAT_SCHEDULE["every-minute-publish-queue-depth"] = {
"task": "ethicalads_ext.monitoring.tasks.publish_celery_queue_depth",
"schedule": crontab(), # Every minute
}


# Sentry settings for error monitoring
Expand Down
Loading