Controlling Run Behavior at Runtime
While most configuration lives in the Flow Version, you can override certain settings at runtime for specific, one-off tasks.Forcing a Rerun (Idempotency Bypass)
By default, Lume prevents re-processing the samesource_path
for a given Flow Version to ensure idempotency. For disaster recovery or reprocessing corrected data, you can bypass this check. See the Idempotency and Reliability section for more details on how Lume prevents duplicate runs.
Advanced Run Monitoring
For production systems, a simpletime.sleep()
loop is not ideal. A better approach is to use an exponential backoff strategy for polling to reduce network load and handle transient API issues gracefully.
Understanding Run Metadata
Therun.metadata
attribute contains a rich, structured object detailing the outcome of a completed run. It is essential for building robust monitoring, alerting, and automated downstream workflows.
For the complete, detailed schema of this object, see the LumeRun
Class Reference.
Handling Partial Failures
APARTIAL_FAILED
status is not necessarily an error condition. It means some data was processed successfully, while some was rejected. This is a common outcome in production pipelines dealing with messy real-world data.
Your workflow should be designed to handle this state gracefully.