angular/packages/compiler-cli/ngcc/test/execution
Paul Gschwendtner 23118ef3d8 refactor(compiler-cli): fix ngcc cluster workers incorrectly being marked as busy with ESM (#43431)
Ngcc relies on cluster for distributing work. The master controller
sends messages to the workers as soon as the worker becomes `online`.
The online event is sent as part of the NodeJS cluster logic itself.

This does not work well because technically `online` could emit before the
worker started listening (this seems to be case now with ESM as the
imports are loaded in a way where `online` emits too early; before the
worker actually listens for messages).

We fix this by explicitly notifying the master when the worker
is ready for retrieving IPC messages/or tasks. This is more safe
anyway as it's not clearly specified when `online` emits.

PR Close #43431
2021-10-01 18:28:46 +00:00
..
cluster refactor(compiler-cli): fix ngcc cluster workers incorrectly being marked as busy with ESM (#43431) 2021-10-01 18:28:46 +00:00
tasks/queues feat(core): support TypeScript 4.3 (#42022) 2021-06-04 11:17:09 -07:00
helpers.ts refactor(ngcc): remove unused import (#43129) 2021-08-16 13:07:22 -07:00
single_processor_executor_spec.ts refactor(ngcc): move logging code into ngtsc (#37114) 2020-06-22 13:38:47 -07:00
utils_spec.ts refactor(ngcc): support processing only the typings files of packages (#40976) 2021-02-24 14:23:14 -08:00