Skip to content

Commit f943b8d

Browse files
committed
feat(cron): add queue protection and custom schedules
1 parent 3268482 commit f943b8d

18 files changed

Lines changed: 569 additions & 20 deletions

File tree

79.2 KB
Loading

packages/desktop/src/common/adapter/ipcBridge.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1347,6 +1347,7 @@ export const cron = {
13471347
agent_config: p.updates.metadata?.agent_config,
13481348
conversation_title: p.updates.metadata?.conversation_title,
13491349
max_retries: p.updates.state?.max_retries,
1350+
queue_enabled: p.updates.state?.queue_enabled,
13501351
})
13511352
),
13521353
removeJob: httpDelete<void, { job_id: string }>((p) => `/api/cron/jobs/${p.job_id}`),
@@ -1404,6 +1405,7 @@ export interface ICronJob {
14041405
run_count: number;
14051406
retry_count: number;
14061407
max_retries: number;
1408+
queue_enabled: boolean;
14071409
};
14081410
}
14091411

@@ -1447,6 +1449,7 @@ export interface ICreateCronJobParams {
14471449
conversation_title?: string;
14481450
created_by: 'user' | 'agent';
14491451
execution_mode?: 'existing' | 'new_conversation';
1452+
queue_enabled?: boolean;
14501453
agent_config?: ICronAgentConfigWrite;
14511454
}
14521455

@@ -1465,6 +1468,7 @@ export interface ICronJobUpdateParams {
14651468
};
14661469
state?: {
14671470
max_retries?: number;
1471+
queue_enabled?: boolean;
14681472
};
14691473
}
14701474

0 commit comments

Comments
 (0)