-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2312 from manyfold3d/rearrange-workers
Improve behaviour of background workers
- Loading branch information
Showing
7 changed files
with
16 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
rails: bundle exec rails server -p $PORT | ||
worker: bundle exec sidekiq | ||
default_worker: bundle exec sidekiq -C config/workers/default.yml | ||
performance_worker: bundle exec sidekiq -C config/workers/performance.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
rails: SCOUT_DEV_TRACE=true bin/rails server -p $PORT | ||
worker: bundle exec sidekiq | ||
default_worker: bundle exec sidekiq -C config/workers/default.yml | ||
performance_worker: bundle exec sidekiq -C config/workers/performance.yml | ||
js: yarn build --watch | ||
css: yarn build:css --watch | ||
typecheck: yarn typecheck --watch --preserveWatchOutput |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
--- | ||
:concurrency: <%= ENV.fetch("DEFAULT_WORKER_CONCURRENCY", 4) %> | ||
:queues: | ||
- scan | ||
- default | ||
- analysis | ||
- default | ||
:scheduler: | ||
:dynamic: true | ||
:dynamic_every: 15s |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
--- | ||
:concurrency: <%= ENV.fetch("PERFORMANCE_WORKER_CONCURRENCY", 1) %> | ||
:queues: | ||
- performance |