feat: complete Aider Page Data review workflow
This commit is contained in:
@@ -207,6 +207,10 @@ export function bootstrapPortalGatewayServices({
|
||||
});
|
||||
const validateRunDeliverables =
|
||||
createRunDeliverablesValidatorFn({ h5Root });
|
||||
const agentRunAutoDispatch = isEnabledFlag(
|
||||
env.MEMIND_AGENT_RUN_AUTODISPATCH,
|
||||
'1',
|
||||
);
|
||||
const agentRunGateway = createAgentRunGatewayFn({
|
||||
pool,
|
||||
userAuth,
|
||||
@@ -242,10 +246,7 @@ export function bootstrapPortalGatewayServices({
|
||||
isSessionExternallyBusy: ({ sessionId }) =>
|
||||
isSessionPageDeliveryActive(sessionId),
|
||||
validateRunDeliverables,
|
||||
autoDispatch: isEnabledFlag(
|
||||
env.MEMIND_AGENT_RUN_AUTODISPATCH,
|
||||
'1',
|
||||
),
|
||||
autoDispatch: agentRunAutoDispatch,
|
||||
maxConcurrentRuns: Number(
|
||||
env.MEMIND_AGENT_RUN_QUEUE_CONCURRENCY ?? 1,
|
||||
),
|
||||
@@ -254,6 +255,16 @@ export function bootstrapPortalGatewayServices({
|
||||
15 * 60 * 1000,
|
||||
),
|
||||
});
|
||||
if (agentRunAutoDispatch && agentRunGateway?.dispatchQueuedRuns) {
|
||||
void agentRunGateway.dispatchQueuedRuns({
|
||||
limit: Number(env.MEMIND_AGENT_RUN_QUEUE_CONCURRENCY ?? 1),
|
||||
}).catch((err) => {
|
||||
console.warn(
|
||||
'[AgentRun] startup queue recovery failed:',
|
||||
err instanceof Error ? err.message : err,
|
||||
);
|
||||
});
|
||||
}
|
||||
|
||||
return {
|
||||
tkmindProxy,
|
||||
|
||||
Reference in New Issue
Block a user