feat(FN-1872): merge fusion/fn-1872

This commit is contained in:
gsxdsm
2026-04-15 09:31:20 -07:00
parent 45c0630ead
commit b59a3dea23
3 changed files with 38 additions and 0 deletions

View File

@@ -286,6 +286,22 @@ export function createServer(store: TaskStore, options?: ServerOptions): ReturnT
};
}
}
if (!options!.routineStore) {
const rs = engine.getRoutineStore();
if (rs) options = { ...options, routineStore: rs };
}
if (!options!.routineRunner) {
const rr = engine.getRoutineRunner();
if (rr) {
options = {
...options,
routineRunner: {
triggerManual: rr.triggerManual.bind(rr),
triggerWebhook: rr.triggerWebhook.bind(rr),
},
};
}
}
}
// Register callback for lazy engine startup on secondary projects