modellerUpdated 2026-04-17

Run a Refresh

Aggregate marked stale and queued for refresh.

What this covers

A refresh re-executes the aggregate query against the source data and overwrites the summary table in the query target. Refreshes run automatically on the cron schedule you configure, but you can also trigger one manually at any time. This article explains what happens during a refresh, when to trigger one manually, the three ways to do it, and what the aggregate status indicators mean.

What a refresh does

A refresh calculates the summary from the model and source data. It does not need another summary to exist first. Model relationships and calculation rules still apply.

During a refresh, the Scheduler service:

  1. Connects to the source and runs the aggregate's GROUP BY query.
  2. Builds a replacement summary table in the query target.
  3. Makes the completed replacement available to queries.

The summary can be unavailable while it is being replaced. Queries during this window use the source and keep the model's rules, without the summary's speed benefit. Some sources can switch tables in one protected step; others need several steps and may need recovery if the connection fails partway through.

For an unavailable aggregate, a failed refresh updates the current error to the latest failure. Earlier failures remain in Refresh History. The aggregate stays unavailable until a successful rebuild.

If a refresh was interrupted after it started, Tessallite can finish recovering it even when you have since turned its schedule off. The schedule stays off. Recovery preserves whether the aggregate was enabled or disabled before that interrupted run. Turning a schedule off does not start ordinary new refreshes.

When to trigger a manual refresh

Aggregate status

StatusMeaningWhat to do
ReadyThe summary table is current. The last refresh completed successfully.Nothing. The aggregate is serving queries.
StaleThe summary table exists but is older than the configured schedule interval, or source data has changed since the last build.The aggregate still serves queries with older data. Trigger a manual refresh if freshness matters, or wait for the next scheduled run.
BuildingThe aggregate was just created and the initial build has not yet completed.Wait. The Scheduler picks up new aggregates within one minute. Check the Health tab if Building persists beyond five minutes.
RefreshingA refresh is in progress right now.Wait for it to complete. Queries during this window fall back to the source fact table.
ErrorThe last refresh attempt failed. An uncertain or incomplete replacement is not used for answers.Open the Health tab to read the error detail. Fix the cause and run a manual refresh to confirm it is resolved.

Option 1 — Refresh a single aggregate from the Canvas

  1. In Model Builder, click the aggregate node in the Canvas. The aggregate is highlighted and the Drawer opens on the right.
  2. In the Drawer, click Refresh Now.
  3. The aggregate status changes to Refreshing. When the refresh completes, the status returns to Ready.

Option 2 — Refresh all aggregates from the Summary Bar

  1. At the bottom of Model Builder, locate the Summary Bar.
  2. Click Refresh All.
  3. Tessallite queues all aggregates in the model for refresh. Refreshes run sequentially, one aggregate at a time, to avoid placing concurrent load on the source.

Refresh All includes every aggregate that is built, being built, or marked invalid. An invalid aggregate is checked against the current model first: if the model now supports it, it is rebuilt and returns to service; if not, the run fails and records why. Retired and disabled aggregates are skipped.

Note: Refresh All runs aggregates sequentially, not in parallel. On a model with many aggregates, the full cycle may take several minutes. Monitor progress in the Canvas — each aggregate's status badge updates in real time.

Option 3 — Trigger a refresh from the Scheduler panel

  1. Open the Scheduler panel from the main navigation.
  2. Locate the aggregate in the list.
  3. Click Run Now next to the aggregate entry.
  4. The Scheduler executes the refresh immediately, outside of the regular cron schedule. The next scheduled run is not affected.

Refresh failures

If a refresh fails, the aggregate status changes to Error. The Scheduler records the error message and timestamp. Open the Health tab in Model Builder to view the full error detail, including the SQL query that failed and the error returned by the source. Fix the root cause — most commonly a network issue, a missing permission on the query target, or a schema change in the source — and then run a manual refresh to confirm the fix before the next scheduled run.

A timeout can mean cancellation requested without proof that the source stopped. Local cleanup means Tessallite closed its own connection or worker. Remote confirmation means the source reported that the job ended. These are different results. When confirmation is missing, have the source administrator check the job before retrying.

Spark, Snowflake and SQL Server table replacement uses several steps and recovery is best effort. If it fails between renaming the old and new tables, leave the summary unavailable. Have the source administrator check the live table, saved older copy and temporary replacement, restore a complete table if needed, then run a fresh rebuild. Do not mark a partial table ready or assume that closing the connection rolled every step back.

Related