guidellm.schemas.base.info
Core data structures and interfaces for the GuideLLM scheduler system.
Provides type-safe abstractions for distributed request processing, timing measurements, and backend interfaces for benchmarking operations. Central to the scheduler architecture, enabling request lifecycle tracking, backend coordination, and state management across distributed worker processes.
RequestInfo
Bases: StandardBaseModel
Complete information about a request in the scheduler system.
Encapsulates all metadata, status tracking, and timing information for requests processed through the distributed scheduler. Provides comprehensive lifecycle tracking from initial queuing through final completion, including error handling and node identification for debugging and performance analysis.
Example: :: request = RequestInfo() request.status = "in_progress" start_time = request.started_at completion_time = request.completed_at
Source code in src/guidellm/schemas/base/info.py
192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 | |
completed_at property
Get the effective request processing completion time.
Returns:
| Type | Description |
|---|---|
float | None | Unix timestamp when processing completed, or None if not completed |
started_at property
Get the effective request processing start time.
Returns:
| Type | Description |
|---|---|
float | None | Unix timestamp when processing began, or None if not started |
model_copy(**_kwargs)
Create a deep copy of the request info with copied timing objects.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
kwargs | Additional keyword arguments for model copying | required |
Returns:
| Type | Description |
|---|---|
RequestInfo | New RequestInfo instance with independent timing objects |
Source code in src/guidellm/schemas/base/info.py
RequestSettings
Bases: StandardBaseDict
Per-request scheduling metadata attached at enqueue, before worker dequeue.
Populated by dataset finalizers (for example from trace relative_timestamp columns). Scheduling strategies read these fields at dequeue. For trace replay, a non-null relative_timestamp becomes an absolute start time at dequeue: start_time + relative_timestamp. When relative_timestamp is null, trace replay schedules the request at benchmark start (no trace offset).
Source code in src/guidellm/schemas/base/info.py
RequestTimings
Bases: StandardBaseDict
Timing measurements for tracking request lifecycle events.
Provides comprehensive timing data for distributed request processing, capturing key timestamps from initial targeting through final completion. Essential for performance analysis, SLA monitoring, and debugging request processing bottlenecks across scheduler workers and backend systems.
Source code in src/guidellm/schemas/base/info.py
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 | |
last_reported property
Get the most recent timing measurement available.
Returns:
| Type | Description |
|---|---|
float | None | The latest Unix timestamp from the timing fields, or None if none |