From b8b396b813c2fc5725a2beaa615c4fbc50e56fa5 Mon Sep 17 00:00:00 2001 From: Christian Sutter Date: Fri, 6 Oct 2023 14:40:24 +0100 Subject: [PATCH] Change naming of `search-api-v2` worker - Rename message queue name and worker command --- projects/search-api-v2/Makefile | 2 +- projects/search-api-v2/docker-compose.yml | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/projects/search-api-v2/Makefile b/projects/search-api-v2/Makefile index d448bf33..aaf0cb0f 100644 --- a/projects/search-api-v2/Makefile +++ b/projects/search-api-v2/Makefile @@ -1,2 +1,2 @@ search-api-v2: bundle-search-api-v2 - $(GOVUK_DOCKER) run $@-lite bundle exec rake message_queue:create_queue + $(GOVUK_DOCKER) run $@-lite bundle exec rake document_sync_worker:create_queue diff --git a/projects/search-api-v2/docker-compose.yml b/projects/search-api-v2/docker-compose.yml index eb767a93..3159ea4e 100644 --- a/projects/search-api-v2/docker-compose.yml +++ b/projects/search-api-v2/docker-compose.yml @@ -21,17 +21,17 @@ services: - rabbitmq environment: RABBITMQ_URL: amqp://guest:guest@rabbitmq - PUBLISHING_EVENT_MESSAGE_QUEUE_NAME: search_api_v2_published_documents + PUBLISHED_DOCUMENTS_MESSAGE_QUEUE_NAME: search_api_v2_published_documents search-api-v2-app: <<: *search-api-v2 depends_on: - nginx-proxy - rabbitmq - - search-api-v2-worker-consume-published-documents + - search-api-v2-document-sync-worker environment: RABBITMQ_URL: amqp://guest:guest@rabbitmq - PUBLISHING_EVENT_MESSAGE_QUEUE_NAME: search_api_v2_published_documents + PUBLISHED_DOCUMENTS_MESSAGE_QUEUE_NAME: search_api_v2_published_documents RAILS_DEVELOPMENT_HOSTS: search-api-v2.dev.gov.uk VIRTUAL_HOST: search-api-v2.dev.gov.uk BINDING: 0.0.0.0 @@ -39,11 +39,11 @@ services: - "3000" command: bin/rails server --restart - search-api-v2-worker-consume-published-documents: + search-api-v2-document-sync-worker: <<: *search-api-v2 depends_on: - rabbitmq environment: RABBITMQ_URL: amqp://guest:guest@rabbitmq - PUBLISHING_EVENT_MESSAGE_QUEUE_NAME: search_api_v2_published_documents - command: bin/rake publishing_event_pipeline:process_messages + PUBLISHED_DOCUMENTS_MESSAGE_QUEUE_NAME: search_api_v2_published_documents + command: bin/rake document_sync_worker:run