Progress API
Getting the Request Context
First, get access to the request context in your function:Method: progress.update()
Stream progress updates to monitoring systems and frontends.
| Parameter | Type | Required | Description |
|---|---|---|---|
current | int | float | ✅ Yes | Current step or percentage complete |
total | int | float | ✅ Yes | Total steps or 100 for percentage |
message | str | None | ❌ No | Human-readable progress message |
attributes | dict[str, str] | None | ❌ No | Additional metadata (key-value pairs) |
Basic Usage
Simple progress tracking:Using Percentages
You can use percentages instead of step counts:Consuming Progress Streams
Progress updates are available through the Tensorlake API in real-time.Polling for Progress Updates
Learn More
Request Context
Full context API reference.