feat: Ensure async workflow executions have access to shared container (#8157)
* feat: Ensure async workflow executions have access to shared container * fix: Register workflow worker on application start
This commit is contained in:
@@ -139,6 +139,15 @@ export async function loadInternalModule(
|
||||
)
|
||||
}
|
||||
|
||||
if (resolution.definition.__passSharedContainer) {
|
||||
localContainer.register(
|
||||
"sharedContainer",
|
||||
asFunction(() => {
|
||||
return container
|
||||
})
|
||||
)
|
||||
}
|
||||
|
||||
const loaders = moduleResources.loaders ?? loadedModule?.loaders ?? []
|
||||
const error = await runLoaders(loaders, {
|
||||
container,
|
||||
|
||||
Reference in New Issue
Block a user