feat(cron): default scheduler enabled
This commit is contained in:
@@ -15,7 +15,7 @@ async function warnIfCronSchedulerDisabled(opts: GatewayRpcOpts) {
|
||||
defaultRuntime.error(
|
||||
[
|
||||
"warning: cron scheduler is disabled in the Gateway; jobs are saved but will not run automatically.",
|
||||
"Enable with `cron.enabled: true` in your clawdis config and restart the Gateway.",
|
||||
"Re-enable with `cron.enabled: true` (or remove `cron.enabled: false`) and restart the Gateway.",
|
||||
store ? `store: ${store}` : "",
|
||||
]
|
||||
.filter(Boolean)
|
||||
|
||||
@@ -387,7 +387,7 @@ export async function startGatewayServer(
|
||||
});
|
||||
const deps = createDefaultDeps();
|
||||
const cronEnabled =
|
||||
process.env.CLAWDIS_SKIP_CRON !== "1" && cfgAtStart.cron?.enabled === true;
|
||||
process.env.CLAWDIS_SKIP_CRON !== "1" && cfgAtStart.cron?.enabled !== false;
|
||||
const cron = new CronService({
|
||||
storePath: cronStorePath,
|
||||
cronEnabled,
|
||||
|
||||
Reference in New Issue
Block a user