fix(): event emitting (#14196)

* fix(): event emitting

* Create rude-queens-deny.md

* fix(): store subscriber should not be constraint

* Update rude-queens-deny.md

* Add tests to prevent regression
This commit is contained in:
Adrien de Peretti
2025-12-03 08:53:09 +01:00
committed by GitHub
parent fe3c28488c
commit 391d8dc6cd
6 changed files with 151 additions and 8 deletions
+5 -4
View File
@@ -91,11 +91,12 @@ async function loadEntrypoints(
ContainerRegistrationKeys.CONFIG_MODULE
)
// Subscribers should be loaded no matter the worker mode, simply they will never handle anything
// since worker/shared instances only will have a running worker to process events.
await subscribersLoader(plugins, container)
if (shouldLoadBackgroundProcessors(configModule)) {
await promiseAll([
subscribersLoader(plugins, container),
jobsLoader(plugins, container),
])
await jobsLoader(plugins, container)
}
if (isWorkerMode(configModule)) {