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
7 changes: 5 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,11 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]



### Fixed
- Configured Celery to use durable, named queues to resolve `INTERNAL_ERROR - Feature 'transient_nonexcl_queues' is deprecated` error from RabbitMQ. Added `CELERY_TASK_QUEUES`, `CELERY_TASK_DEFAULT_QUEUE`, `CELERY_TASK_DEFAULT_EXCHANGE`, and `CELERY_TASK_DEFAULT_ROUTING_KEY` settings in `base.py`.


## 0.2.7 - 2025-12-22

### Added
Expand Down
8 changes: 8 additions & 0 deletions polarrouteserver/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
import os
import secrets

from kombu import Queue

from polarrouteserver._version import __version__ as polarrouteserver_version

logger = logging.getLogger(__name__)
Expand Down Expand Up @@ -206,6 +208,12 @@
CELERY_RESULT_BACKEND = os.getenv("CELERY_RESULT_BACKEND", "django-db")
CELERY_BEAT_SCHEDULER = "django_celery_beat.schedulers:DatabaseScheduler"

# Use durable queues to avoid RabbitMQ deprecation of transient_nonexcl_queues
CELERY_TASK_QUEUES = (Queue("default", durable=True),)
CELERY_TASK_DEFAULT_QUEUE = "default"
CELERY_TASK_DEFAULT_EXCHANGE = "default"
CELERY_TASK_DEFAULT_ROUTING_KEY = "default"


# Routing settings (TODO: hardcoded, can / should these be exposed elsewhere?)
WAYPOINT_DISTANCE_TOLERANCE = 1 # Nautical Miles
Expand Down
Loading