feat(server): job system (#10134)

This commit is contained in:
forehalo
2025-02-18 05:41:56 +00:00
parent f6a86c10fe
commit cb895d4cb0
26 changed files with 1045 additions and 131 deletions
@@ -14,13 +14,8 @@ test.before('start app', async t => {
// @ts-expect-error override
AFFiNE.flavor = {
type: 'doc',
allinone: false,
graphql: false,
sync: false,
renderer: false,
doc: true,
script: false,
} satisfies typeof AFFiNE.flavor;
} as typeof AFFiNE.flavor;
const app = await createTestingApp({
imports: [buildAppModule()],
});
@@ -15,13 +15,8 @@ test.before('start app', async t => {
// @ts-expect-error override
AFFiNE.flavor = {
type: 'graphql',
allinone: false,
graphql: true,
sync: false,
renderer: false,
doc: false,
script: false,
} satisfies typeof AFFiNE.flavor;
} as typeof AFFiNE.flavor;
const app = await createTestingApp({
imports: [buildAppModule()],
});
@@ -14,13 +14,8 @@ test.before('start app', async t => {
// @ts-expect-error override
AFFiNE.flavor = {
type: 'renderer',
allinone: false,
graphql: false,
sync: false,
renderer: true,
doc: false,
script: false,
} satisfies typeof AFFiNE.flavor;
} as typeof AFFiNE.flavor;
const app = await createTestingApp({
imports: [buildAppModule()],
});
@@ -14,13 +14,8 @@ test.before('start app', async t => {
// @ts-expect-error override
AFFiNE.flavor = {
type: 'sync',
allinone: false,
graphql: false,
sync: true,
renderer: false,
doc: false,
script: false,
} satisfies typeof AFFiNE.flavor;
} as typeof AFFiNE.flavor;
const app = await createTestingApp({
imports: [buildAppModule()],
});