From b32005e98aeaf6452526510985b98045e0b6a739 Mon Sep 17 00:00:00 2001 From: Hao Luo Date: Tue, 4 Oct 2022 00:39:44 -0500 Subject: [PATCH] added changeset Signed-off-by: Hao Luo --- .changeset/little-chairs-dance.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .changeset/little-chairs-dance.md diff --git a/.changeset/little-chairs-dance.md b/.changeset/little-chairs-dance.md new file mode 100644 index 0000000000..07cbf52389 --- /dev/null +++ b/.changeset/little-chairs-dance.md @@ -0,0 +1,21 @@ +--- +'@backstage/plugin-scaffolder-backend': minor +--- + +Added optional "concurrentTasksLimit" option to TaskWorker + +TaskWorker can now run multiple (defaults to 10) tasks concurrently. + +To use the option, in `createRouter`: + +```diff +const worker = await TaskWorker.create({ + taskBroker, + actionRegistry, + integrations, + logger, + workingDirectory, + additionalTemplateFilters, ++ concurrentTasksLimit: 10 // (1 to Infinity) +}); +```