Skip to content

Commit

Permalink
Change naming of search-api-v2 worker
Browse files Browse the repository at this point in the history
- Rename message queue name and worker command
  • Loading branch information
csutter committed Oct 6, 2023
1 parent db2be3e commit b8b396b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion projects/search-api-v2/Makefile
Original file line number Diff line number Diff line change
@@ -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
12 changes: 6 additions & 6 deletions projects/search-api-v2/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,29 +21,29 @@ 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
expose:
- "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

0 comments on commit b8b396b

Please sign in to comment.