Files
backstage/.changeset/little-chairs-dance.md
T
Hao Luo 560232de3a fixed linting errors
Signed-off-by: Hao Luo <howlowck@gmail.com>
2022-10-28 21:45:56 -05:00

645 B

@backstage/plugin-scaffolder-backend
@backstage/plugin-scaffolder-backend
minor

Deprecated the taskWorkers option in RouterOptions in favor of concurrentTasksLimit which sets the limit of concurrent tasks in a single TaskWorker

TaskWorker can now run multiple (defaults to 10) tasks concurrently using the concurrentTasksLimit option available in both RouterOptions and CreateWorkerOptions.

To use the option to create a TaskWorker:

const worker = await TaskWorker.create({
    taskBroker,
    actionRegistry,
    integrations,
    logger,
    workingDirectory,
    additionalTemplateFilters,
+   concurrentTasksLimit: 10 // (1 to Infinity)
});