fix: route celery tasks to consumed queue
deploy / deploy (push) Canceled after 0s

This commit is contained in:
Jens
2026-07-22 05:43:08 +02:00
parent 551d0f46c2
commit e234641c36
4 changed files with 15 additions and 2 deletions
@@ -1,6 +1,7 @@
from pathlib import Path
import yaml
from django.conf import settings
ROOT = Path(__file__).resolve().parents[2]
@@ -26,6 +27,15 @@ def test_runtime_is_compatible_with_read_only_container() -> None:
assert "for required_host in 127.0.0.1 localhost" in deploy_script
def test_celery_default_queue_is_consumed_by_worker() -> None:
compose = yaml.safe_load((ROOT / "docker-compose.yml").read_text(encoding="utf-8"))
worker_command = compose["services"]["worker"]["command"]
assert settings.CELERY_TASK_DEFAULT_QUEUE == "default"
queue_index = worker_command.index("-Q") + 1
assert "default" in worker_command[queue_index].split(",")
def test_deployment_examples_use_per_platform_mailbox_configuration() -> None:
required_keys = {
"MAILBOX_CREDENTIAL_KEYS",