Skip to main content

Job Scheduling

hotglue runs data syncs using asynchronous jobs. To automate these jobs, you can configure a sync schedule in the UI so jobs run automatically without manual intervention. Scheduling is powered by UNIX-style CRON expressions, which determine when asynchronous jobs are triggered. CRON expressions can be configured directly through the UI. For example, the following expression would trigger every day at 12:00am UTC:
cron(0 0 * * *)

How to configure the sync schedule

Customizing schedules for Default tenant

Sync schedules are configured from the Jobs section in the flow by selecting Edit Schedule. Edit Schedule Default Then click the arrow to navigate to the Select Schedule Type page. Access Edit Schedule Default From here, you can choose how often jobs should run and how the schedule is defined. hotglue supports three schedule types in the UI: Fixed, Interval, and CRON. Select Schedule Type Default Fixed schedule A Fixed schedule triggers jobs at a specific time on a recurring basis. You can configure jobs to run hourly, daily, weekly, or monthly. For schedules that require a time, jobs will always run at the selected time. Fixed Schedule Interval schedule An Interval schedule triggers jobs after a defined amount of time has passed. Jobs can be set to run every specified number of minutes or hours. Each run is scheduled relative to the previous run. Interval Schedule CRON expression A CRON expression schedule allows you to define a custom schedule using a UNIX-style CRON expression entered directly in the UI. This option is evaluated in UTC and is intended for advanced scheduling needs. CRON Expression

Customizing schedules for tenants

To configure a sync schedule for a specific tenant, first navigate to the desired tenant. Select Tenant View From here, open the relevant flow and click Edit Schedule in the Jobs section. Edit Schedule for Tenant Then click the arrow to navigate to the Select Schedule Type page and you can choose the desired Schedule Type for the tenant.

API

To configure a sync schedule via the API, head to the schedule endpoint docs.

Granular sync schedules

You can use the API to configure any cron expression as a sync schedule. This is often helpful if you need jobs more frequent than hourly. You can use this to create a schedule for default tenant or any individual tenant.

Ignoring default credentials

If you want to avoid running scheduled jobs for your default credentials, but are using your default sync schedule to cascade to new tenants, you can use the API to create a sync schedule for your default tenant and set "state" = "disabled" This will continue to apply your sync schedule to new tenants but will avoid running scheduled jobs with your default credentials.