Since hotglue syncs data via asynchronous jobs, it is often optimal to configure a sync schedule that is used to automatically trigger jobs on a certain interval.
hotglue leverages AWS Cron Rules to offer flexible scheduling expressions. For example, the following expression would trigger every day at 12:00pm UTC:
cron(0 12 * * ? *)
To configure a sync schedule via the admin API, first navigate to the desired tenant.
From here, open the relevant flow you wish to schedule and navigate to the sync schedule tab.
From here you can configure the desired sync schedule, and press Save. Once enabled, you will see a green check mark as pictured below.
To configure a sync schedule via the API, head to the schedule endpoint docs
Alternatively, you can also configure a default sync schedule for each flow. The default sync schedule is automatically enabled when a tenant links a source.
The default sync schedule will not apply to any tenants that have already linked a source. The schedule (and any changes) only apply when tenants link a source.
To configure the default sync schedule, you will first need to enable the Automatically enable default sync schedule environment setting:
Once this setting is configured, open the flow you wish to add a default sync schedule for.
From here, open the Sync Schedule tab
In the schedule expression editor, configure your desired sync frequency, and Save. You should see a green check mark in the top right once the schedule is enabled.
If you'd like to apply a more granular default sync schedule using a cron expression, use the API
That's it! Now when users link the configured flow, your default sync schedule will automatically apply!
Updated 22 days ago