diff --git a/docs/directory-sync/api-reference.md b/docs/directory-sync/api-reference.md index 4c1accc3..549c4042 100644 --- a/docs/directory-sync/api-reference.md +++ b/docs/directory-sync/api-reference.md @@ -856,3 +856,5 @@ curl -X POST \ + +Alternatively you can set the `DSYNC_WEBHOOK_BATCH_CRON_INTERVAL` env var. diff --git a/docs/directory-sync/providers/google.md b/docs/directory-sync/providers/google.md index 4ca56f64..03a57d86 100644 --- a/docs/directory-sync/providers/google.md +++ b/docs/directory-sync/providers/google.md @@ -85,6 +85,8 @@ curl -X POST \ http://localhost:5225/api/v1/dsync/cron/sync-google ``` +Alternatively you can set the `DSYNC_GOOGLE_CRON_INTERVAL` env var to enable the cron in the Jackson service. + Learn more about [Google Directory Sync API](/docs/directory-sync/api-reference#4-sync-directory). ### FAQ diff --git a/docs/jackson/deploy/env-variables.md b/docs/jackson/deploy/env-variables.md index d9ef7e5b..678a70a0 100644 --- a/docs/jackson/deploy/env-variables.md +++ b/docs/jackson/deploy/env-variables.md @@ -405,7 +405,19 @@ The following env vars are used to configure the directory sync feature. ### **DSYNC_WEBHOOK_BATCH_SIZE** -Enable batch processing of directory sync events. The value represents the number of events to batch together instead of sending each event individually. This requires you to configure a cron job to [process the queued events](/docs/directory-sync/api-reference#batch-processing-events) +Enable batch processing of directory sync events. The value represents the number of events to batch together instead of sending each event individually. This requires you to configure a cron job to [process the queued events](/docs/directory-sync/api-reference#batch-processing-events). Alternatively you can set `DSYNC_WEBHOOK_BATCH_CRON_INTERVAL` below if you are not deploying the service in an Edge environment. + +### **DSYNC_WEBHOOK_BATCH_CRON_INTERVAL** + +The cron interval at which to process the queued events. Provide a number in seconds. By default, the cron job is disabled. + +NPM library option: `dsync.webhookBatchCronInterval` + +### **DSYNC_GOOGLE_CRON_INTERVAL** + +The cron interval at which to sync the Google Workspace. Provide a number in seconds. By default, the cron job is disabled. + +NPM library option: `dsync.providers.google.cronInterval` ### **DSYNC_GOOGLE_CLIENT_ID**