Merge pull request #13558 from backstage/rugvip/workwork

scaffolder-backend: use 3 parallel workers by default
This commit is contained in:
Patrik Oldsberg
2022-09-07 10:01:48 +02:00
committed by GitHub
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-scaffolder-backend': patch
---
The number of task workers used to execute templates now default to 3, rather than 1.
@@ -178,7 +178,7 @@ export async function createRouter(
const actionRegistry = new TemplateActionRegistry();
const workers = [];
for (let i = 0; i < (taskWorkers || 1); i++) {
for (let i = 0; i < (taskWorkers || 3); i++) {
const worker = await TaskWorker.create({
taskBroker,
actionRegistry,