@@ -156,6 +156,14 @@ class StepRunResponseBody(WorkspaceScopedResponseBody):
156
156
"""Response body for step runs."""
157
157
158
158
status : ExecutionStatus = Field (title = "The status of the step." )
159
+ start_time : Optional [datetime ] = Field (
160
+ title = "The start time of the step run." ,
161
+ default = None ,
162
+ )
163
+ end_time : Optional [datetime ] = Field (
164
+ title = "The end time of the step run." ,
165
+ default = None ,
166
+ )
159
167
inputs : Dict [str , "ArtifactVersionResponse" ] = Field (
160
168
title = "The input artifact versions of the step run." ,
161
169
default = {},
@@ -201,16 +209,6 @@ class StepRunResponseMetadata(WorkspaceScopedResponseMetadata):
201
209
max_length = TEXT_FIELD_MAX_LENGTH ,
202
210
)
203
211
204
- # Timestamps
205
- start_time : Optional [datetime ] = Field (
206
- title = "The start time of the step run." ,
207
- default = None ,
208
- )
209
- end_time : Optional [datetime ] = Field (
210
- title = "The end time of the step run." ,
211
- default = None ,
212
- )
213
-
214
212
# References
215
213
logs : Optional ["LogsResponse" ] = Field (
216
214
title = "Logs associated with this step run." ,
@@ -409,7 +407,7 @@ def start_time(self) -> Optional[datetime]:
409
407
Returns:
410
408
the value of the property.
411
409
"""
412
- return self .get_metadata ().start_time
410
+ return self .get_body ().start_time
413
411
414
412
@property
415
413
def end_time (self ) -> Optional [datetime ]:
@@ -418,7 +416,7 @@ def end_time(self) -> Optional[datetime]:
418
416
Returns:
419
417
the value of the property.
420
418
"""
421
- return self .get_metadata ().end_time
419
+ return self .get_body ().end_time
422
420
423
421
@property
424
422
def logs (self ) -> Optional ["LogsResponse" ]:
0 commit comments