scaffolder-backend: use 3 parallel workers by default

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2022-09-06 17:52:51 +02:00
parent f1e43bd5df
commit 50467bc15b
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,