FEATURE: introduce ultra_low priority queue

This commit introduces an ultra low priority queue for post rebakes. This
way rebakes can never interfere with regular sidekiq processing for cases
where we perform a large scale rebake.

Additionally it allows Post.rebake_old to be run with rate_limiter: false
to avoid triggering the limiter when rebaking. This is handy for cases
where you want to just force the full rebake and not wait for it to trickle
This commit is contained in:
Sam
2019-01-17 14:53:09 +11:00
parent 67a7670bab
commit 384135845b
6 changed files with 12 additions and 11 deletions

View File

@ -1,5 +1,5 @@
#!/bin/bash
PARAMS="$@"
CMD="cd /src && USER=discourse RAILS_ENV=${RAILS_ENV:=development} bundle exec sidekiq -q critical -q low -q default"
CMD="cd /src && USER=discourse RAILS_ENV=${RAILS_ENV:=development} bundle exec sidekiq -q critical -q low -q default -q ultra_low"
docker exec -it -u discourse:discourse discourse_dev /bin/bash -c "$CMD"