Skip to main content
The LumeRun object is the central data structure in the Lume SDK. It represents a single execution of a Lume pipeline and holds all its associated state and results. An instance of this object is returned by lume.run() and lume.run_status().

Attributes

id

Type: strThe unique identifier for the run, prefixed with run_. This ID is used to query the run’s status and access its results.Example: "run_01HYE5ZJ..."

status

Type: strThe current state of the run in its lifecycle. See the Run Lifecycle documentation for a full list of possible statuses.Example: "TRANSFORMING"

metadata

Type: dictA dictionary containing detailed results and metrics after a run completes. See the detailed Metadata Schema below for the full structure.

Methods

wait()

run.wait()

Blocks execution and polls the run’s status until it reaches a terminal state (SUCCEEDED, FAILED, PARTIAL_FAILED, or CRASHED). This method updates the LumeRun object in-place.
Note on Production Use: While wait() is convenient for scripts, for scalable, event-driven applications, we strongly recommend using Webhooks to receive notifications about run completion instead of polling.
Parameters
  • timeout (int, optional): The maximum number of seconds to wait. If the timeout is reached, a TimeoutError is raised. Defaults to 3600 (1 hour).
  • poll_interval (int, optional): The number of seconds to wait between status checks. Defaults to 5.
Returns
  • None
Example

refresh()

run.refresh()

Manually refreshes the LumeRun object in-place, updating its status and metadata with the latest information from the Lume server. This is equivalent to calling run = lume.run_status(run.id).Parameters
  • None
Returns
  • None
Example

Metadata Schema

The metadata attribute contains a rich, structured object detailing the outcome of a completed run.

Top-Level Structure

run Object

Contains identifiers and high-level information about the run itself.

pipeline Object

Details the performance of each stage in the sync-transform-sync pipeline. pipeline.stages Object

results Object

Summarizes the outcome of the data transformation. results.target_locations Object

validation Object

Provides a detailed summary of data quality test outcomes. validation.top_errors Array Object

errors Array

This array is empty for SUCCEEDED or PARTIAL_FAILED runs. If the run FAILED, it contains objects detailing the cause.