Skip to main content

Overview

These examples authenticate with an account API key (api_secret="prdm_cmp_..." plus workspace_uid), which requires paradime-io 6.0.0 or later. Legacy workspace API keys (api_key + api_secret) are still supported. See Getting Started.
The Catalog module lets you trigger a refresh of the Paradime catalog and follow its progress.

Refresh the catalog

Requests a background refresh of the Paradime catalog. If a refresh is already running, the method returns that refresh instead of starting a new one.
CatalogRefreshRequest
An object with token, the refresh ID to pass to get_refresh, and joined, which is True when a refresh was already running and is returned instead of a new one.

Get the state of a catalog refresh

Gets the state of a catalog refresh and of each of its steps.
str
required
The refresh ID returned by refresh.
Optional[CatalogRefresh]
The refresh, or None if no refresh has this ID. A CatalogRefresh has token, status (RUNNING, SUCCEEDED, FAILED, LOST, or SKIPPED), started_at, finished_at, error, finished (True when nothing in the refresh is still going), and steps.Each CatalogRefreshStep has kind (for example docs_generate.dbt, catalog.build, or datahub.push), label, status (PENDING, RUNNING, SUCCEEDED, FAILED, SKIPPED, or LOST), blocking (False for steps whose failure does not fail the refresh, such as an integration push), started_at, finished_at, progress, and error. The is_done and is_failed properties tell you whether a step has stopped and whether it failed. A LOST step was running but stopped reporting, so it counts as failed.