@builder.io/dev-tools
Version:
Builder.io Visual CMS Devtools
24 lines (23 loc) • 905 B
TypeScript
export interface StartCronSyncerOptions {
cronFilePath: string;
/** How often to re-read the JSON file for changes (ms). Default: 30s */
syncIntervalMs?: number;
/** Service base URL (e.g. https://api.builder.io) */
apiHost: string;
/** Project ID to include in sync payload */
projectId: string;
/** Branch name for this org-agent */
branchName: string;
/** Owner/API key used as query param */
ownerId: string;
/** Private key for Bearer auth */
privateKey: string;
}
/**
* Watches cron-jobs.json for changes and syncs configs to the service.
*
* All scheduling is handled externally by Cloud Scheduler calling
* the /projects-scheduler/cron-dispatch endpoint. This module is purely
* responsible for keeping Firestore in sync with the local config file.
*/
export declare function startCronChecker(options: StartCronSyncerOptions): () => void;