|
61 | 61 | started_by_user_id=bindparam("started_by_user_id"), |
62 | 62 | start_reason=bindparam("start_reason"), |
63 | 63 | ended_at=bindparam("ended_at"), |
64 | | - expected_start_time=bindparam("expected_start_time"), |
65 | | - expected_end_time=bindparam("expected_end_time"), |
| 64 | + expected_start_at=bindparam("expected_start_at"), |
| 65 | + expected_end_at=bindparam("expected_end_at"), |
66 | 66 | ) |
67 | 67 | inserted_row = insert_statement.excluded |
68 | 68 | insert_statement = insert_statement.on_conflict_do_update( |
|
79 | 79 | "attempt": func.coalesce(inserted_row.attempt, Run.attempt), |
80 | 80 | "persistent_log_url": func.coalesce(inserted_row.persistent_log_url, Run.persistent_log_url), |
81 | 81 | "running_log_url": func.coalesce(inserted_row.running_log_url, Run.running_log_url), |
82 | | - "expected_start_time": func.coalesce(inserted_row.expected_start_time, Run.expected_start_time), |
83 | | - "expected_end_time": func.coalesce(inserted_row.expected_end_time, Run.expected_end_time), |
| 82 | + "expected_start_at": func.coalesce(inserted_row.expected_start_at, Run.expected_start_at), |
| 83 | + "expected_end_at": func.coalesce(inserted_row.expected_end_at, Run.expected_end_at), |
84 | 84 | }, |
85 | 85 | ) |
86 | 86 |
|
@@ -275,8 +275,8 @@ async def create(self, run: RunDTO) -> Run: |
275 | 275 | attempt=run.attempt, |
276 | 276 | persistent_log_url=run.persistent_log_url, |
277 | 277 | running_log_url=run.running_log_url, |
278 | | - expected_start_time=run.nominal_start_time, |
279 | | - expected_end_time=run.nominal_end_time, |
| 278 | + expected_start_at=run.expected_start_at, |
| 279 | + expected_end_at=run.expected_end_at, |
280 | 280 | ) |
281 | 281 | self._session.add(result) |
282 | 282 | await self._session.flush([result]) |
@@ -304,8 +304,8 @@ async def update( |
304 | 304 | "attempt": new.attempt, |
305 | 305 | "persistent_log_url": new.persistent_log_url, |
306 | 306 | "running_log_url": new.running_log_url, |
307 | | - "expected_start_time": new.nominal_start_time, |
308 | | - "expected_end_time": new.nominal_end_time, |
| 307 | + "expected_start_at": new.expected_start_at, |
| 308 | + "expected_end_at": new.expected_end_at, |
309 | 309 | } |
310 | 310 | for col_name, value in optional_fields.items(): |
311 | 311 | if value is not None: |
@@ -335,8 +335,8 @@ async def create_or_update_bulk(self, runs: list[RunDTO]) -> None: |
335 | 335 | "attempt": run.attempt, |
336 | 336 | "persistent_log_url": run.persistent_log_url, |
337 | 337 | "running_log_url": run.running_log_url, |
338 | | - "expected_start_time": run.nominal_start_time, |
339 | | - "expected_end_time": run.nominal_end_time, |
| 338 | + "expected_start_at": run.expected_start_at, |
| 339 | + "expected_end_at": run.expected_end_at, |
340 | 340 | } |
341 | 341 | for run in runs |
342 | 342 | ], |
|
0 commit comments