Skip to content

Commit 4c586c3

Browse files
authored
Merge pull request #101 from OpenBMB/feat/bootstrap-cron
feat(bootstrap): auto-patch cron section into existing pilotdeck.yaml
2 parents 87933b2 + dfccfa1 commit 4c586c3

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

scripts/bootstrap-pilotdeck-config.mjs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,10 @@ router:
102102
subagentMaxTokens: 48000
103103
stats:
104104
enabled: true
105+
cron:
106+
enabled: true
107+
timezone: Asia/Shanghai
108+
maxConcurrentRuns: 2
105109
`;
106110

107111
function resolvePilotHome() {
@@ -192,8 +196,16 @@ adapters:
192196
# domainName: feishu
193197
`;
194198

199+
const DEFAULT_CRON_SNIPPET = `
200+
cron:
201+
enabled: true
202+
timezone: Asia/Shanghai
203+
maxConcurrentRuns: 2
204+
`;
205+
195206
const PATCH_SECTIONS = [
196207
{ key: 'adapters', snippet: DEFAULT_ADAPTERS_SNIPPET },
208+
{ key: 'cron', snippet: DEFAULT_CRON_SNIPPET },
197209
];
198210

199211
function patchMissingSections(configPath) {

0 commit comments

Comments
 (0)