Skip to content

Commit 9d4cb25

Browse files
committed
Add motivation for disabling workers
1 parent c0fc4fe commit 9d4cb25

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

rfcs/0014-task-workers.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@ The pool should also be re-used when multiple projects are being built, either i
4444
* Task Processors shall be called with a well defined signature as described [below](#task-processor)
4545
* A Task Processor should not be exposed to Worker-specific API
4646
- I.e. it can be executed on the main thread as well as in a Worker
47+
- This allows users as well as UI5 Tooling logic to control whether Workers are used or not
48+
- For example in CI environments where only one CPU core is available to the build, Workers are expected to produce overhead
49+
- Users might want to disable Workers to easily debug issues in Processors
50+
- The UI5 Tooling build itself might already be running in a Worker
4751
* The Work Dispatcher and Thread Runner modules will handle all inter-process communication
4852
- This includes serializing and de-serializing `@ui5/fs/Resource` instances
4953
* Custom tasks can opt into this feature by defining one ore more "Task Processor" modules in its ui5.yaml

0 commit comments

Comments
 (0)