Browse Source

Update docker config and move some workers to different queues (#8345)

* Reorder docker-compose's sidekiq queues to match config/sidekiq.yml

* Make the ̀“mailers” queue higher priority than “pull”
ThibG 1 month ago
parent
commit
fdda332e4d
2 changed files with 2 additions and 2 deletions
  1. 1
    1
      config/sidekiq.yml
  2. 1
    1
      docker-compose.yml

+ 1
- 1
config/sidekiq.yml View File

@@ -3,8 +3,8 @@
3 3
 :queues:
4 4
   - default
5 5
   - push
6
-  - pull
7 6
   - mailers
7
+  - pull
8 8
 :schedule:
9 9
   subscriptions_scheduler:
10 10
     cron: '<%= Random.rand(0..59) %> <%= Random.rand(4..6) %> * * *'

+ 1
- 1
docker-compose.yml View File

@@ -68,7 +68,7 @@ services:
68 68
     image: tootsuite/mastodon
69 69
     restart: always
70 70
     env_file: .env.production
71
-    command: bundle exec sidekiq -q default -q mailers -q pull -q push
71
+    command: bundle exec sidekiq -q default -q push -q mailers -q pull
72 72
     depends_on:
73 73
       - db
74 74
       - redis