Skip to content

Commit

Permalink
Merge pull request #260 from alphagov/sengi/threadpool
Browse files Browse the repository at this point in the history
Fix type error in configuring worker_threads.
  • Loading branch information
sengi authored Apr 24, 2024
2 parents e24f5d0 + 0ea6983 commit 6ce03b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tasks/document_sync_worker.rake
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ namespace :document_sync_worker do
GovukMessageQueueConsumer::Consumer.new(
queue_name: ENV.fetch("PUBLISHED_DOCUMENTS_MESSAGE_QUEUE_NAME"),
processor: PublishingApiMessageProcessor.new,
worker_threads: ENV.fetch("PUBLISHED_DOCUMENTS_MESSAGE_QUEUE_THREADS", 1),
worker_threads: ENV.fetch("PUBLISHED_DOCUMENTS_MESSAGE_QUEUE_THREADS", 1).to_i,
).run
rescue Interrupt
Rails.logger.info("Stopping document sync worker (received interrupt)")
Expand Down

0 comments on commit 6ce03b3

Please sign in to comment.